note 44421 added to function.echo
| From: | mk at musiker dot nu | Date: | Thu, 05 Aug 2004 11:28:45 +0000 |
| Subject: | note 44421 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74001@lists.php.net to get a copy of this message | ||
please note that the example:
echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon no extra whitespace!
END;
does NOT work when you put a space or tab character before "END;", it will instead result
in a parse error (probably because the parser can't find the "END;"-string).
so, if you indent you code (and you really should ;-) ), do not use this approach.
(don't know if this is an issue in php5, but i hope not)
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44421
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44421&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44421&report=yes
Search -- http://master.php.net/manage/user-notes.php