mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
24 lines
417 B
PHP
24 lines
417 B
PHP
--TEST--
|
|
braced and unbraced complex variable replacement test (heredoc)
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once 'nowdoc.inc';
|
|
|
|
print <<<ENDOFHEREDOC
|
|
This is heredoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
$x = <<<ENDOFHEREDOC
|
|
This is heredoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
print "{$x}";
|
|
|
|
?>
|
|
--EXPECT--
|
|
This is heredoc test #s 1, 2, 3, and 4.
|
|
This is heredoc test #s 1, 2, 3, and 4.
|