mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
929dca8cd1
commit
4c23c16cd0
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
("<<<"). One should provide an identifier after
|
||||
<literal><<<</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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue