123456789101112131415161718192021222324252627 |
- --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"
|