mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Heredoc arrows were backward.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@18840 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
53a3e044e1
commit
70ca6aaaab
1 changed files with 6 additions and 5 deletions
|
@ -158,13 +158,14 @@ $a = 1.234; $a = 1.2e3;
|
|||
|
||||
<para>
|
||||
Another way to delimit strings is by using here doc syntax
|
||||
(">>>"). One should provide an identifier after
|
||||
<literal>>>></literal>, then the string, and then the
|
||||
same identifier to close the quotation.
|
||||
("<<<"). One should provide an identifier after
|
||||
<literal><<<</literal>, then the string, and then the
|
||||
same identifier to close the quotation. The closing identifier
|
||||
<emphasis>must</emphasis> begin in the first column of the line.
|
||||
<example>
|
||||
<title>Here doc string quoting example</title>
|
||||
<programlisting>
|
||||
$str = >>>EOD
|
||||
$str = <<<EOD
|
||||
Example of string
|
||||
spanning multiple lines
|
||||
using heredoc syntax.
|
||||
|
@ -174,7 +175,7 @@ EOD;
|
|||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Here docs was added in PHP 4.
|
||||
Here doc support was added in PHP 4.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
|
|
Loading…
Reference in a new issue