summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_004.phpt
blob: 29334b8dabdd63fb1cd75324a9bbf4c0058075c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
braces variable replacement test (heredoc)
--FILE--
<?php

require_once 'nowdoc.inc';

print <<<ENDOFHEREDOC
This is heredoc test #{$a}.

ENDOFHEREDOC;

$x = <<<ENDOFHEREDOC
This is heredoc test #{$b}.

ENDOFHEREDOC;

print "{$x}";

?>
--EXPECT--
This is heredoc test #1.
This is heredoc test #2.