1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/Zend/tests/nowdoc_001.phpt
Dmitry Stogov 87a8f72f49 Added NOWDOC
2008-02-12 09:28:30 +00:00

25 lines
330 B
PHP

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