Re: unexpected T_SL

From: Date: Mon, 02 Sep 2002 02:57:17 +0000
Subject: Re: unexpected T_SL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-114865@lists.php.net to get a copy of this message
I know how to use echo and print but I'm learning php so I try to understand why I have this error with the heredoc syntax. Thanks! Peter Houchin wrote: > simple .. look up docs on putting straight text to the screen and u'll find > a number of options such as echo and print i bet ya'd be able to solve > really quickly > > > -----Original Message----- > > From: Voisine [mailto:voisine@hotmail.com] > > Sent: Monday, 2 September 2002 12:34 PM > > To: php-general@lists.php.net > > Subject: [PHP] unexpected T_SL > > > > > > 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; > > ?> > > > > Regards! > > Joe > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.general (#114865) next »