mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
25 lines
330 B
Plaintext
25 lines
330 B
Plaintext
|
--TEST--
|
||
|
basic nowdoc syntax
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
require_once 'nowdoc.inc';
|
||
|
|
||
|
print <<<'ENDOFNOWDOC'
|
||
|
This is a nowdoc test.
|
||
|
|
||
|
ENDOFNOWDOC;
|
||
|
|
||
|
$x = <<<'ENDOFNOWDOC'
|
||
|
This is another nowdoc test.
|
||
|
With another line in it.
|
||
|
ENDOFNOWDOC;
|
||
|
|
||
|
print "{$x}";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
This is a nowdoc test.
|
||
|
This is another nowdoc test.
|
||
|
With another line in it.
|