November 4, 2011

How to create a multiline string

 

$myString = @"
This is the first line
This the second line
This is the third line
"@

Note : the @” and the ”@ must be the last symbols on the line.

1 comment:

Valery Moskalenko said...

$myString = @'
This is the first line
This the second line
This is the third line
$SkipVariableParsing
'@

Post a Comment