note 54962 deleted from function.echo by betz
| From: | betz@php.net | Date: | Fri, 22 Jul 2005 10:37:58 +0000 |
| Subject: | note 54962 deleted from function.echo by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92284@lists.php.net to get a copy of this message | ||
Note Submitter: masterkumon at yahoo dot com
----
EOT confusing error
<?php
echo <<<EOT
some words
EOT;
?>
It will produce error, don't know why, but EOT give superb advantage in writing HTML with
indentation.
My current solution : just put "EOT;" on the first position of the line. Don't give
any indentation, whether spaces or tabs.
Like this
<?php
echo <<<EOT
some words
EOT;
?>
Not pretty good explanation, but at least it works for rapid development :D.