note 57574 added to function.echo
| From: | php-general at lists dot php dot net | Date: | Fri, 07 Oct 2005 20:09:04 +0000 |
| Subject: | note 57574 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96571@lists.php.net to get a copy of this message | ||
This is a beauty for lots of text, really. And easy to read, if you're a PERL or shell person.
echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
END;
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57574
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57574&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57574&report=yes
Search -- http://master.php.net/manage/user-notes.php