[PHP-DOC] cvs: phpdoc /en/functions array.xml From: Jesus M. Castagnetto (jesusmc <email protected>)
Date: 11/30/00

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>