echo w/ here document
| From: | Craig Buxton | Date: | Mon, 11 Nov 2002 22:19:09 +0000 |
| Subject: | echo w/ here document | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-123911@lists.php.net to get a copy of this message | ||
Hi,
I'm having trouble using echo w/ here document syntax. When I run
<?php
$name="John Doe";
echo <<< ENDOFECHO;
<HTML>
<BODY>
<H3>ECHO TEST</H3>
Hello, $name.
</BODY>
</HTML>
ENDOFECHO;
?>
I get a parse error line 1. I've been through it a dozen times and combed all the docs I could find on the matter, but I can't find where I've gone wrong. Any help would be greatly appreciated.
Craig Buxton
Gravity Pilot Productions
craig@gravitypilot.com