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