xref: /PHP-7.3/Zend/tests/nowdoc_007.phpt (revision 782352c5)
1--TEST--
2braced and unbraced 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