heredoc is one word.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88396 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
James Cox 2002-07-11 23:37:00 +00:00
parent 929dca8cd1
commit 4c23c16cd0

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.84 $ -->
<!-- $Revision: 1.85 $ -->
<chapter id="language.types">
<title>Types</title>
@ -681,7 +681,7 @@ echo 'I am trying to include at this point: \n a newline';
<sect3 id="language.types.string.syntax.heredoc">
<title>Heredoc</title>
<simpara>
Another way to delimit strings is by using here doc syntax
Another way to delimit strings is by using heredoc syntax
("&lt;&lt;&lt;"). One should provide an identifier after
<literal>&lt;&lt;&lt;</literal>, then the string, and then the
same identifier to close the quotation.
@ -723,14 +723,14 @@ echo 'I am trying to include at this point: \n a newline';
</warning>
<para>
Here doc text behaves just like a double-quoted string, without
Heredoc text behaves just like a double-quoted string, without
the double-quotes. This means that you do not need to escape quotes
in your here docs, but you can still use the escape codes listed
above. Variables are expanded, but the same care must be taken
when expressing complex variables inside a here doc as with
strings.
<example>
<title>Here doc string quoting example</title>
<title>Heredoc string quoting example</title>
<programlisting role="php">
<![CDATA[
<?php
@ -769,7 +769,7 @@ EOT;
<note>
<para>
Here doc support was added in PHP 4.
Heredoc support was added in PHP 4.
</para>
</note>