Re: Re: unexpected T_SL
| From: | Chris Hewitt | Date: | Mon, 02 Sep 2002 17:53:36 +0000 |
| Subject: | Re: Re: unexpected T_SL | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114946@lists.php.net to get a copy of this message | ||
HTH ChrisVoisine 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".