nowdocs again
| From: | Stanislav Malyshev | Date: | Fri, 18 Jan 2008 21:07:09 +0000 |
| Subject: | nowdocs again | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-34831@lists.php.net to get a copy of this message | ||
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