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