Re: nowdocs again
| From: | Wez Furlong | Date: | Tue, 22 Jan 2008 01:22:11 +0000 |
| Subject: | Re: nowdocs again | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34867@lists.php.net to get a copy of this message | ||
+1, using 'END' as the syntax.
The ~ version to me implies some kind of bit-flipping operation, whereas the single quotes remind us that interpolation doesn't happen.
--Wez.
On Jan 18, 2008, at 4:07 PM, Stanislav Malyshev wrote:
Hi all! I remember the topic of 'nowdocs' (if you don't remember what it is, read on) was already discussed, but nothing really happened about it. For those who just recently woke up from cryogenic sleep :), "nowdocs" are heredocs extension that does not interpret the content (think single quotes instead of double quotes). Should look something like: $foo = <<<'END' blah$fooblah END unline regular heredocs, $foo would be left as-is. I think now it's good to add it to 5.3 (and I like 'FOO' syntax best of all variants). Any objections to this? --Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com --PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php