summaryrefslogtreecommitdiff
path: root/Zend/tests/flexible-heredoc-complex-test1.phpt
blob: 3e148d065243b8143f427ce6b75b2af7e470d2fe (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
25
26
27
--TEST--
Flexible heredoc syntax complex test 1: interpolated nested heredocs
with different delimiter names
--FILE--
<?php

$a = 'b';
${"b\nb\n d"} = 'b';

var_dump(<<<DOC1
    a
    ${<<<DOC2
        b
        ${<<<DOC3
            a
            DOC3}
         d
        DOC2
    }
    c
    DOC1);

?>
--EXPECT--
string(5) "a
b
c"