xref: /PHP-8.2/Zend/tests/heredoc_003.phpt (revision ddcf7a2f)
1--TEST--
2simple 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