heredoc.txt 131 B

1234567891011121314
  1. echo <<<EOT
  2. String with $var and {$foo->bar[1]}.
  3. EOT;
  4. echo <<<EOT
  5. string
  6. EOT
  7. still string
  8. EOT;
  9. array(<<<EOD
  10. foobar!
  11. EOD
  12. );