note 8936 added to Operators
| From: | ik at avatartech dot com | Date: | Sat, 07 Oct 2000 04:03:08 +0000 |
| Subject: | note 8936 added to Operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6184@lists.php.net to get a copy of this message | ||
It would be nice if the "here-document" operator were documented here.<br>
Since the only place I've found it is on PHPBuilder.com, here's the syntax:<br>
$foo = <<< EOT<br>
this<br>
that<br>
the other<br>
EOT<br>
The great thing is you have variable interpolation but don't have to escape quotes. It makes
layout functions much easier to write and read. It's only in php4.
http://www.php.net/manual/language.operators.php