note 78722 added to language.types.string
| From: | php at luyer dot nl | Date: | Wed, 24 Oct 2007 20:20:54 +0000 |
| Subject: | note 78722 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131704@lists.php.net to get a copy of this message | ||
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)
----
Server IP: 85.12.26.134
Probable Submitter: 84.245.6.177
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/78722
Del: integrated -- https://master.php.net/note/delete/78722/integrated
Del: useless -- https://master.php.net/note/delete/78722/useless
Del: bad code -- https://master.php.net/note/delete/78722/bad+code
Del: spam -- https://master.php.net/note/delete/78722/spam
Del: non-english -- https://master.php.net/note/delete/78722/non-english
Del: in docs -- https://master.php.net/note/delete/78722/in+docs
Del: other reasons-- https://master.php.net/note/delete/78722
Reject -- https://master.php.net/note/reject/78722
Search -- https://master.php.net/manage/user-notes.php