nowdoc_002.phpt   [plain text]


--TEST--
basic binary nowdoc syntax
--FILE--
<?php

require_once 'nowdoc.inc';

print b<<<'ENDOFNOWDOC'
This is a nowdoc test.

ENDOFNOWDOC;

$x = b<<<'ENDOFNOWDOC'
This is another nowdoc test.

ENDOFNOWDOC;

print "{$x}";

?>
--EXPECT--
This is a nowdoc test.
This is another nowdoc test.