RE: [PHP] print <<<EOF
| From: | Lars Torben Wilson | Date: | Tue, 07 Nov 2000 21:30:44 +0000 |
| Subject: | RE: [PHP] print <<<EOF | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24198@lists.php.net to get a copy of this message | ||
Boget, Chris writes:
> > Get rid of the ';' after the EOF on the last line
>
> Yup, that did it. All the example code I saw in
> the documentation included the ';'.
> Oh, well.
>
> Thanks for the help. :)
>
> Chris
It does work (4.0.4-dev) with a semicolon there.
It doesn't work with whitespace after the semicolon. I'd love to
document why this happens this way--being completely different from
the rest of the language, it's likely to bite (and has bitten)
people.
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+