mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed bug #53575 (The "invalid HEREDOC" example is totally valid)
# Also fixed the <screen> tags to be inside examples for better markup rendering git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306478 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
776fca5c5e
commit
b8045fcb12
1 changed files with 10 additions and 9 deletions
|
@ -244,7 +244,7 @@ echo 'Variables do not $expand $either';
|
|||
class foo {
|
||||
public $bar = <<<EOT
|
||||
bar
|
||||
EOT;
|
||||
EOT;
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
@ -295,14 +295,14 @@ EOT;
|
|||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
My name is "MyName". I am printing some Foo.
|
||||
Now, I am printing some Bar2.
|
||||
This should print a capital 'A': A]]>
|
||||
</screen>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
It is also possible to use the Heredoc syntax to pass data to function
|
||||
|
@ -439,13 +439,14 @@ EOT;
|
|||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
My name is "$name". I am printing some $foo->foo.
|
||||
Now, I am printing some {$foo->bar[1]}.
|
||||
This should not print a capital 'A': \x41]]></screen>
|
||||
This should not print a capital 'A': \x41]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue