summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_003.phpt
blob: fb34f515c66628be1771c00323295870e140f294 (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--
simple 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.