svn: /phpdoc/en/trunk/language/ functions.xml
| From: | Kalle Sommer Nielsen | Date: | Wed, 13 Jan 2010 02:17:49 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ functions.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5827@lists.php.net to get a copy of this message | ||
kalle Wed, 13 Jan 2010 02:17:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293480
Log:
Fixed output boxes, reported by Yawk @ #php.doc on EFNet
Changed paths:
U phpdoc/en/trunk/language/functions.xml
Modified: phpdoc/en/trunk/language/functions.xml
===================================================================
--- phpdoc/en/trunk/language/functions.xml 2010-01-13 02:11:39 UTC (rev 293479)
+++ phpdoc/en/trunk/language/functions.xml 2010-01-13 02:17:49 UTC (rev 293480)
@@ -255,18 +255,15 @@
?>
]]>
</programlisting>
- </example>
- </para>
-
- <para>
- The output from the above snippet is:
- </para>
- <para>
- <screen>
+ &example.outputs;
+ <screen>
+<![CDATA[
Making a cup of cappuccino.
Making a cup of .
Making a cup of espresso.
- </screen>
+]]>
+ </screen>
+ </example>
</para>
<para>
PHP also allows the use of <type>array</type>s and the special type &null;
@@ -315,18 +312,15 @@
?>
]]>
</programlisting>
- </example>
- </para>
-
- <para>
- The output of the above example is:
- </para>
- <para>
- <screen>
+ &example.outputs;
+ <screen>
+<![CDATA[
Warning: Missing argument 2 in call to makeyogurt() in
/usr/local/etc/httpd/htdocs/phptest/functest.html on line 41
Making a bowl of raspberry .
- </screen>
+]]>
+ </screen>
+ </example>
</para>
<para>
Now, compare the above with this:
@@ -346,18 +340,14 @@
?>
]]>
</programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Making a bowl of acidophilus raspberry.
+]]>
+ </screen>
</example>
</para>
-
- <para>
- The output of this example is:
- </para>
- <para>
- <screen>
-Making a bowl of acidophilus raspberry.
- </screen>
- </para>
-
<note>
<simpara>
As of PHP 5, default values may be passed by reference.