[PHP-DOC] cvs: phpdoc /en/functions array.xml From: Stig Venaas (venaas <email protected>)
Date: 08/08/00

venaas Tue Aug 8 11:59:23 2000 EDT

  Modified files:
    /phpdoc/en/functions array.xml
  Log:
  Fixed bug in example, and added note about key preservation for
  array_unique, array_diff and array_intersect.
  
  
Index: phpdoc/en/functions/array.xml
diff -u phpdoc/en/functions/array.xml:1.17 phpdoc/en/functions/array.xml:1.18
--- phpdoc/en/functions/array.xml:1.17 Fri Aug 4 02:38:31 2000
+++ phpdoc/en/functions/array.xml Tue Aug 8 11:59:22 2000
@@ -104,6 +104,7 @@
      <function>Array_diff</function> returns an array
      containing all the values of <parameter>array1</parameter>
      that are not present in any of the other arguments.
+ Note that keys are preserved.
     </para>
     <para>
      <example>
@@ -111,7 +112,7 @@
       <programlisting role="php">
 $array1 = array ("a" => "green", "red", "blue");
 $array2 = array ("b" => "green", "yellow", "red");
-$result = array_intersect ($array1, $array2);
+$result = array_diff ($array1, $array2);
       </programlisting>
      </example>
     </para>
@@ -174,6 +175,7 @@
      <function>Array_intersect</function> returns an array
      containing all the values of <parameter>array1</parameter>
      that are present in all the arguments.
+ Note that keys are preserved.
     </para>
     <para>
      <example>
@@ -893,6 +895,7 @@
      <function>Array_unique</function> takes input
      <parameter>array</parameter> and returns a new array
      without duplicate values.
+ Note that keys are preserved.
     </para>
     <para>
      <example>