cvs: phpdoc /en/functions array.xml

From: Date: Mon, 25 Mar 2002 01:40:38 +0000
Subject: cvs: phpdoc /en/functions array.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969343416@lists.php.net to get a copy of this message
yohgaki Sun Mar 24 20:40:38 2002 EDT Modified files: /phpdoc/en/functions array.xml Log: Add callback function limitations (array_walk, array_filter) Index: phpdoc/en/functions/array.xml diff -u phpdoc/en/functions/array.xml:1.165 phpdoc/en/functions/array.xml:1.166 --- phpdoc/en/functions/array.xml:1.165 Sun Mar 17 18:04:20 2002 +++ phpdoc/en/functions/array.xml Sun Mar 24 20:40:37 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.165 $ --> +<!-- $Revision: 1.166 $ --> <reference id="ref.array"> <title>Array Functions</title> <titleabbrev>Arrays</titleabbrev> @@ -488,6 +488,12 @@ </para> &note.func-callback; <para> + Users may not change array itself from the callback + function. e.g. Add/delele element, unset the array that + <function>array_walk</function> is applied. If the array is + changed, the behavior is undefined. + </para> + <para> See also <function>array_map</function> and <function>array_reduce</function>. </para> @@ -2148,6 +2154,12 @@ In PHP 4 <function>reset</function> needs to be called as necessary since <function>array_walk</function> does not reset the array by default. + </para> + <para> + Users may not change array itself from the callback + function. e.g. Add/delele element, unset the array that + <function>array_walk</function> is applied. If the array is + changed, the behavior is undefined. </para> </note> <para>

« previous php.doc (#969343416) next »