php-src/Zend/tests/nowdoc_002.phpt
2008-02-12 09:28:30 +00:00

24 lines
290 B
PHP

--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.