cvs: phpdoc /en/functions array.xml

From: Date: Thu, 30 Nov 2000 06:52:35 +0000
Subject: cvs: phpdoc /en/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333123@lists.php.net to get a copy of this message
jmcastagnetto Wed Nov 29 22:52:35 2000 EDT Modified files: /phpdoc/en/functions array.xml Log: Fixed the informalexample missing the programlisting children tag so the manual will build Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.44 phpdoc/en/functions/array.xml:1.45 --- phpdoc/en/functions/array.xml:1.44 Wed Nov 29 11:47:41 2000 +++ phpdoc/en/functions/array.xml Wed Nov 29 22:52:34 2000 @@ -15,8 +15,8 @@ </simpara> <para> See also <function>is_array</function>, <function>explode</function>, - <function>implode</function>, <function>split</function> - and <function>join</function>. + <function>implode</function>, <function>split</function> + and <function>join</function>. </para> </partintro> @@ -50,12 +50,12 @@ </note> </para> <para> - Syntax "index =&gt; values", separated by commas, define index - and values. index may be of type string or numeric. When index is - omitted, a integer index is automatically generated, starting - at 0. If index is an integer, next generated index will - be the biggest integer index + 1. Note that when two identical - index are defined, the last overwrite the first. + Syntax "index =&gt; values", separated by commas, define index + and values. index may be of type string or numeric. When index is + omitted, a integer index is automatically generated, starting + at 0. If index is an integer, next generated index will + be the biggest integer index + 1. Note that when two identical + index are defined, the last overwrite the first. </para> <para> The following example demonstrates how to create a @@ -83,6 +83,7 @@ </example> which will display : <informalexample> + <programlisting> Array ( [0] => 1 @@ -93,6 +94,7 @@ [8] => 1 [9] => 19 ) + </programlisting> </informalexample> Note that index '3' is defined twice, and keep its final value of 13. Index 4 is defined after index 8, and next generated index (value 19) @@ -103,18 +105,20 @@ <example> <title>1-based index with <function>Array</function></title> <programlisting role="php"> - $firstquarter = array(1 => 'January', 'February', 'March'); - print_r($firstquarter); + $firstquarter = array(1 => 'January', 'February', 'March'); + print_r($firstquarter); </programlisting> </example> which will display : <informalexample> + <programlisting> Array ( - [1] => 'January' - [2] => 'February' - [3] => 'March' + [1] => 'January' + [2] => 'February' + [3] => 'March' ) + </programlisting> </informalexample> </para> <para>

« previous php.doc (#969333123) next »