Annotation of embedaddon/php/Zend/tests/nowdoc_007.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: braced and unbraced complex variable replacement test (nowdoc)
3: --FILE--
4: <?php
5:
6: require_once 'nowdoc.inc';
7:
8: print <<<'ENDOFNOWDOC'
9: This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
10:
11: ENDOFNOWDOC;
12:
13: $x = <<<'ENDOFNOWDOC'
14: This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
15:
16: ENDOFNOWDOC;
17:
18: print "{$x}";
19:
20: ?>
21: --EXPECT--
22: This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
23: This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>