Re: [PHP4BETA] Here-docs change
| From: | Andi Gutmans | Date: | Sat, 10 Apr 1999 10:32:56 +0000 |
| Subject: | Re: [PHP4BETA] Here-docs change | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-70@lists.php.net to get a copy of this message | ||
At 03:26 10/04/99 +0200, Stig Sæther Bakken wrote:
>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).
You're not spoiling anything. I don't think PHP has to be based on every
single language out there.
I don't see any problem with using this operator even if it's used for
something else in some other joe-shmoe language :)
Andi
---
Andi Gutmans <andi@zend.com>
ICQ: 1568297
PGP: finger andi@vipe.technion.ac.il
--
PHP 4 Beta