php-src/Zend/tests/heredoc_006.phpt
2008-02-12 09:27:45 +00:00

24 lines
408 B
PHP

--TEST--
braced 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.