summaryrefslogtreecommitdiff
path: root/Zend/tests/flexible-heredoc-complex-test3.phpt
blob: cf68f123163b278b9dc4af49f33e3e6a3f7ea5d4 (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 3: interpolated nested heredocs
with the same delimiter name with different levels of indentation
--FILE--
<?php

${' a'} = ' b';
${' b'} = 'c';
${"b\n b"} = 'b';

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

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