mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
24 lines
295 B
Plaintext
24 lines
295 B
Plaintext
|
--TEST--
|
||
|
basic binary heredoc syntax
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
require_once 'nowdoc.inc';
|
||
|
|
||
|
print b<<<ENDOFHEREDOC
|
||
|
This is a heredoc test.
|
||
|
|
||
|
ENDOFHEREDOC;
|
||
|
|
||
|
$x = b<<<ENDOFHEREDOC
|
||
|
This is another heredoc test.
|
||
|
|
||
|
ENDOFHEREDOC;
|
||
|
|
||
|
print "{$x}";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
This is a heredoc test.
|
||
|
This is another heredoc test.
|