[PHP-DOC] cvs: phpdoc /en/functions array.xml From: Damien Seguy (dams <email protected>)
Date: 07/13/01

dams Fri Jul 13 08:24:12 2001 EDT

  Modified files:
    /phpdoc/en/functions array.xml
  Log:
  Added comment about array_walk and PHP functions.
  
Index: phpdoc/en/functions/array.xml
diff -u phpdoc/en/functions/array.xml:1.81 phpdoc/en/functions/array.xml:1.82
--- phpdoc/en/functions/array.xml:1.81 Thu Jul 12 08:49:04 2001
+++ phpdoc/en/functions/array.xml Fri Jul 13 08:24:11 2001
@@ -1548,12 +1548,16 @@
      </funcprototype>
     </funcsynopsis>
     <simpara>
- Applies the function named by <parameter>func</parameter> to each
- element of <parameter>arr</parameter>.
+ Applies the user-defined function named by <parameter>func</parameter>
+ to each element of <parameter>arr</parameter>.
      <parameter>func</parameter> will be passed array value as the
      first parameter and array key as the second parameter. If
      <parameter>userdata</parameter> is supplied, it will be passed as
- the third parameter to the user function.
+ the third parameter to the user function. <parameter>func</parameter>
+ must be a user-defined function, and can't be a native PHP function.
+ Thus, you can't use <function>array_walk</function> straight with
+ <function>str2lower</function>, you must build a user-defined function
+ with it first, and pass this function as argument.
     </simpara>
     <simpara>
      If <parameter>func</parameter> requires more than two or three