mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
24 lines
290 B
Plaintext
24 lines
290 B
Plaintext
|
--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.
|