+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
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php