cvs: phpdoc /en/reference/array/functions list.xml
| From: | Felipe Pena | Date: | Fri, 18 Apr 2008 19:54:42 +0000 |
| Subject: | cvs: phpdoc /en/reference/array/functions list.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1533@lists.php.net to get a copy of this message | ||
felipe Fri Apr 18 19:54:42 2008 UTC
Modified files:
/phpdoc/en/reference/array/functions list.xml
Log:
- Added new example
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/array/functions/list.xml?r1=1.19&r2=1.20&diff_format=u
Index: phpdoc/en/reference/array/functions/list.xml
diff -u phpdoc/en/reference/array/functions/list.xml:1.19
phpdoc/en/reference/array/functions/list.xml:1.20
--- phpdoc/en/reference/array/functions/list.xml:1.19 Wed Feb 20 21:23:52 2008
+++ phpdoc/en/reference/array/functions/list.xml Fri Apr 18 19:54:42 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.19 $ -->
+<!-- $Revision: 1.20 $ -->
<refentry xml:id="function.list" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>list</refname>
@@ -100,6 +100,29 @@
</para>
<para>
<example>
+ <title>Using nested <function>list</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+list($a, list($b, $c)) = array(1, array(2, 3));
+
+var_dump($a, $b, $c);
+
+?>
+]]>
+ </programlisting>
+ <screen>
+<![CDATA[
+int(1)
+int(2)
+int(3)
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
+ <example>
<title>Using <function>list</function> with array indices</title>
<programlisting role="php">
<![CDATA[