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