note 18272 added to language.basic-syntax
| From: | paquerette_only at hotmail dot com | Date: | Wed, 16 Jan 2002 18:40:40 +0000 |
| Subject: | note 18272 added to language.basic-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24947@lists.php.net to get a copy of this message | ||
Under php 3.0.14 :
if you have a line like this :
echo "?> written to file";
And you wish to comment this line, you'll do this :
//echo "?> written to file";
But this will generate a parse error at the end of script (even if this line was in an include
script).
Why? because '?>' is ignored as long as it is inside "".
But once you've commented, the echo function is ignored, and '?>' takes its
signification : end of script!
I guess it was corrected on next version, but if you run under php 3.0.14 be careful, it make me
loose a lot of time!
Paquerette
--
http://www.php.net/manual/en/language.basic-syntax.php
http://master.php.net/manage/user-notes.php?action=edit+18272
http://master.php.net/manage/user-notes.php?action=delete+18272
http://master.php.net/manage/user-notes.php?action=reject+18272