andrei          Tue Jan 30 19:16:24 2001 EDT

  Modified files:              
    /phpdoc/en/functions        pcre.xml 
  Log:
  Note about preg_grep().
  
  
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.37 phpdoc/en/functions/pcre.xml:1.38
--- phpdoc/en/functions/pcre.xml:1.37   Tue Jan 30 00:56:36 2001
+++ phpdoc/en/functions/pcre.xml        Tue Jan 30 19:16:23 2001
@@ -605,6 +605,12 @@
      the given <parameter>pattern</parameter>.</para>
 
     <para>
+     Since PHP 4.0.4, the results returned by <function>preg_grep</function>
+     are indexed using the keys from the input array. If this behavior is
+     undesirable, use <function>array_values</function> on the array returned by
+     <function>preg_grep</function> to reindex the values.</para>
+
+    <para>
      <example>
       <title><function>preg_grep</function> example</title>
       <programlisting role="php">


Reply via email to