No thread found. Threads are linked to an RFC when their first email links to the RFC page, or when the RFC page links to them.
Copied from wiki.php.net, last synchronized Oct 13, 2026 11:52 UTC
In 5_3 we introduced NOWDOC in and it would be logical to allow a double quoted syntax sister of NOWDOC which acts as HEREDOC. The reason to do this is mainly consistency with with variable declarations:
$var = '$var'; // Literally
$var = "$var"; // Intepreted
$var = 'Hello world';
$str = <<<LABEL
$var
LABEL;
echo $str; // gives: Hello world
“$var” is interpreted.
$var = 'Hello world';
$str = <<<'LABEL'
$var
LABEL;
echo $str; // gives: $var
“$var” is taken literally.
$var = 'Hello world';
$str = <<<"LABEL"
$var
LABEL;
echo $str; // gives: Hello world
“$var” would be interpreted.