flexible-heredoc-complex-test3.phpt 384 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Flexible heredoc syntax complex test 3: interpolated nested heredocs
  3. with the same delimiter name with different levels of indentation
  4. --FILE--
  5. <?php
  6. ${' a'} = ' b';
  7. ${' b'} = 'c';
  8. ${"b\n b"} = 'b';
  9. var_dump(<<<DOC1
  10. a
  11. ${<<<DOC2
  12. b
  13. ${<<<DOC3
  14. a
  15. DOC3}
  16. DOC2
  17. }
  18. c
  19. DOC1);
  20. ?>
  21. --EXPECT--
  22. string(8) " a
  23. b
  24. c"