Re: [PHP4BETA] Here-docs change
| From: | Stig Sæther Bakken | Date: | Sat, 10 Apr 1999 01:26:13 +0000 |
| Subject: | Re: [PHP4BETA] Here-docs change | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-69@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
>
> Hi,
>
> I changed here-docs to start with <<<. We can't really support << because
> of the ambiguity with the shift left operator and constants.
> You can now follow the <<< with whitespace. So the following now works:
>
> print <<< FOO
> Bar
> Barbara
> FOO;
I hate to spoil this one, but <<< and >>> are actually shift operators
in some languages as well (but really rotate, not shift I think).
- Stig
--
PHP 4 Beta