1234567891011121314151617181920212223 |
- --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.
|