Hi Lars, oh wow no <<< again...

==================
as we introduce NOWDOC in 5.3 it would be logical to allow a double
quoted syntax sister of NOWDOC which acts as HEREDOC (same as for $var =
"$var" vs $var = '$var'). Currently we have the following options:

$var = "Hello world";

$str = <<<LABEL
$var
LABEL;

$str = <<<'LABEL'
$var
LABEL;

The first one is HEREDOC and $var would be evaluated. The second one is
NOWDOC and $var would be used literally. The following patch adds a
third version:

$str = <<<"LABEL"
$var
LABEL;

This acts as HEREDOC, therefore $var would be interpreted.

Comments?
=================

Just one. Why?

(-1, in case that wasn't clear)

- Steph


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to