Heredoc syntax: Heredoc in arguments

<?php
var_dump(array(<<<EOD
foobar!
EOD
));
?>

It is also possible to use the Heredoc syntax to pass data to function arguments.

Related concepts

Heredoc syntax: Heredoc in arguments — Structure map

Clickable & Draggable!

Heredoc syntax: Heredoc in arguments — Related pages: