>
>
>>Voisine wrote:
>>Hi,
>>
>>What is wrong witht his code? Parse error: parse error, unexpected
>>T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2
>>
>><?php
>>$str = <<<EOD
>>Example of string
>>spanning multiple lines
>>using heredoc syntax.
>>EOD;
>>?>
>>
Assuming your line 2 is the one with "<<<EOD" in it, I can get a parse 
error if there is a space after "EOD". I can also get a parse error on 
line 6 if there is a space before the closing "EOD".

HTH
Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to