summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_002.phpt
blob: 481ada996cc61771084d0628a31e560d2ea3a42d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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.