summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_001.phpt
blob: d42b3df2e4acf8739a9bc40aee5b6bafafac9b7b (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 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.