mirror of
https://github.com/php/php-src.git
synced 2024-12-23 08:49:39 +08:00
24 lines
290 B
PHP
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.
|