heredoc.expect.txt 426 B

1234567891011121314
  1. <span class="hljs-keyword">echo</span> <span class="hljs-string">&lt;&lt;&lt;EOT
  2. String with <span class="hljs-subst">$var</span> and <span class="hljs-subst">{$foo-&gt;bar[1]}</span>.
  3. EOT;</span>
  4. <span class="hljs-keyword">echo</span> <span class="hljs-string">&lt;&lt;&lt;EOT
  5. string
  6. EOT
  7. still string
  8. EOT;</span>
  9. <span class="hljs-keyword">array</span>(<span class="hljs-string">&lt;&lt;&lt;EOD
  10. foobar!
  11. EOD</span>
  12. );