aidan           Fri Oct  8 04:43:07 2004 EDT

  Modified files:              
    /phpdoc/en/reference/array/functions        array-multisort.xml 
  Log:
  Removed extra code from final example and clarified wording. Reworded introduction.
  
http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/array-multisort.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/array/functions/array-multisort.xml
diff -u phpdoc/en/reference/array/functions/array-multisort.xml:1.12 
phpdoc/en/reference/array/functions/array-multisort.xml:1.13
--- phpdoc/en/reference/array/functions/array-multisort.xml:1.12        Sun Oct  3 
07:06:39 2004
+++ phpdoc/en/reference/array/functions/array-multisort.xml     Fri Oct  8 04:43:04 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
 <!-- splitted from ./en/functions/array.xml, last change in rev 1.11 -->
   <refentry id="function.array-multisort">
    <refnamediv>
@@ -21,9 +21,12 @@
     </para>
     <para>
      <function>array_multisort</function> can be used to sort several
-     arrays at once or a multi-dimensional array according to one of
-     more dimensions. Associative (string) keys are maintained while
-     numerical keys are re-indexed.
+     arrays at once, or a multi-dimensional array by one or more
+     dimensions.
+    </para>
+    <para>
+     Associative (<type>string</type>) keys will be maintained, but numeric
+     keys will be re-indexed.
     </para>
     <para>
      The input arrays are treated as columns of a table to be sorted
@@ -240,14 +243,15 @@
        with a lowercase letter.
       </para>
       <para>
-       To perform a case insensitve search, we can sort by an all lowercase array.
+       To perform a case insensitve search, force the sorting order to be
+       determined by a lowercase copy of the original array.
       </para>
       <programlisting role="php">
 <![CDATA[
 $array = array('Alpha', 'atomic', 'Beta', 'bank');
 $array_lowercase = array_map('strtolower', $array);
 
-array_multisort($array_lowercase, SORT_ASC, SORT_STRING, $array, SORT_ASC, 
SORT_STRING);
+array_multisort($array_lowercase, SORT_ASC, SORT_STRING, $array);
 
 print_r($array);
 ]]>

Reply via email to