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