mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Example within notes are confusing
- Keep the screen content in CDATA to avoid leading newline git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@318169 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c4a3b8382d
commit
fbb8a1962d
1 changed files with 8 additions and 6 deletions
|
@ -453,10 +453,11 @@ This should not print a capital 'A': \x41]]>
|
|||
Unlike heredocs, nowdocs can be used in any static data context. The
|
||||
typical example is initializing class properties or constants:
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<example>
|
||||
<title>Static data example</title>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Static data example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
class foo {
|
||||
|
@ -466,9 +467,8 @@ EOT;
|
|||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</note>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
|
@ -689,8 +689,10 @@ echo "{$foo->$baz[1]}\n";
|
|||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
I am bar.
|
||||
I am bar.
|
||||
]]>
|
||||
</screen>
|
||||
</informalexample>
|
||||
|
||||
|
|
Loading…
Reference in a new issue