xref: /PHP-5.3/Zend/tests/heredoc_002.phpt (revision ddcf7a2f)
1--TEST--
2basic binary heredoc syntax
3--FILE--
4<?php
5
6require_once 'nowdoc.inc';
7
8print b<<<ENDOFHEREDOC
9This is a heredoc test.
10
11ENDOFHEREDOC;
12
13$x = b<<<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