note 78722 deleted from language.types.string by felipe
| From: | felipe@php.net | Date: | Mon, 24 Dec 2007 02:51:22 +0000 |
| Subject: | note 78722 deleted from language.types.string by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133957@lists.php.net to get a copy of this message | ||
Note Submitter: php at luyer dot nl
----
You can also use a here document as an argument in a function call. Like this:
<?php
foo(<<<EOT
Example of string
spanning multiple lines
using heredoc syntax.
EOT
);
?>
Note: no semicolon after the EOT (just as when using quoted text)