Re: Re: unexpected T_SL

From: Date: Mon, 02 Sep 2002 08:19:29 +0000
Subject: Re: Re: unexpected T_SL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-114884@lists.php.net to get a copy of this message
Hi Erwin, Monday, September 2, 2002, 11:28:09 AM, I've got: E> 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; >> ?> E> To be honest, there is nothing wrong. It works in version 4.2.2 (at least, E> here it does) ;-)) E> Grtz Erwin Why not to try <?php $str = <<< EOT ??? It seems to me, that EOD -> End Of Data, and EOT -> End Of Text Silly, but why not to try? :) -- The Same, Steel mailto:asergey@inbox.ru http://www.none.ru

« previous php.general (#114884) next »