summaryrefslogtreecommitdiff
path: root/Zend/tests/flexible-heredoc-complex-test2.phpt
blob: d585e4b476b4826ff42f2481d7c5e2701b5aff73 (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 2: interpolated nested heredocs
with the same delimiter name
--FILE--
<?php

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

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

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