#47618 [Bgs->Ver]: Say how to turn of interpolation on <<< here documents.
| From: | bjori@php.net | Date: | Wed, 11 Mar 2009 07:54:21 +0000 |
| Subject: | #47618 [Bgs->Ver]: Say how to turn of interpolation on <<< here documents. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1966@lists.php.net to get a copy of this message | ||
ID: 47618
Updated by: bjori@php.net
Reported By: jidanni at jidanni dot org
-Status: Bogus
+Status: Verified
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
You should use our lookup search then:
http://php.net/<<< sends you to the correct page
:)
I guess a seealso from echo and print would be useful though.
Previous Comments:
------------------------------------------------------------------------
[2009-03-11 03:19:20] jidanni at jidanni dot org
OK. Please put a see-also link to it on function.print.html, as that's
what we hit when searching for <<< in certain search engines.
------------------------------------------------------------------------
[2009-03-11 03:00:43] philip@php.net
The print documentation is not meant to explain PHP syntax, string
(heredoc) or otherwise. However, the documentation you desire is
located
here:
http://php.net/types.string
It appears you're interested in nowdoc, which is the sister of
heredoc.
------------------------------------------------------------------------
[2009-03-11 02:45:25] jidanni at jidanni dot org
Description:
------------
On function.print.html you mention print <<<END
Now as everybody knows, the shell and perl both have ways to "quote"
"END" to turn off $ interpolation.
However for PHP it is a mystery how to do this.
Say explicitly whether of not PHP has such a capability, and if so
how.
(As it stands, you don't even say if we can use anything other than
"END", e.g., "MYEND".)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47618&edit=1