xref: /PHP-7.4/Zend/tests/nowdoc_006.phpt (revision ddcf7a2f)
1--TEST--
2braced complex variable replacement test (nowdoc)
3--FILE--
4<?php
5
6require_once 'nowdoc.inc';
7
8print <<<'ENDOFNOWDOC'
9This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
10
11ENDOFNOWDOC;
12
13$x = <<<'ENDOFNOWDOC'
14This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
15
16ENDOFNOWDOC;
17
18print "{$x}";
19
20?>
21--EXPECT--
22This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
23This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
24