Re: strange print<<<MARK behavior

From: Date: Wed, 29 Nov 2000 11:32:54 +0000
Subject: Re: strange print<<<MARK behavior
Groups: php.general 
Request: Send a blank email to php-general+get-27802@lists.php.net to get a copy of this message
>of the two files attatched to this email, 'index.phtml' was working ok. >but the part in 'index2.phtml' with the /* comments */ on it was >apparently causing a parse-error (which the parser was reporting as >being at the end of the document). This was the same parse error I was gettting until I figured out how the "here document" construct worked. Not only do the 'print<<<TAG' and 'TAG;' lines have to be completely flush left (first characters on their respective lines), but there also cannot be anything following them on those same lines (other than the linebreak).

« previous php.general (#27802) next »