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