mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
24 lines
286 B
PHP
24 lines
286 B
PHP
--TEST--
|
|
basic heredoc syntax
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once 'nowdoc.inc';
|
|
|
|
print <<<ENDOFHEREDOC
|
|
This is a heredoc test.
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
$x = <<<ENDOFHEREDOC
|
|
This is another heredoc test.
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
print "{$x}";
|
|
|
|
?>
|
|
--EXPECT--
|
|
This is a heredoc test.
|
|
This is another heredoc test.
|