cvs: phpdoc /en/reference/array/functions array-filter.xml

From: Date: Wed, 30 Apr 2003 01:12:38 +0000
Subject: cvs: phpdoc /en/reference/array/functions array-filter.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352964@lists.php.net to get a copy of this message
joey Tue Apr 29 21:12:38 2003 EDT Modified files: /phpdoc/en/reference/array/functions array-filter.xml Log: Using Philip's suggested text. Index: phpdoc/en/reference/array/functions/array-filter.xml diff -u phpdoc/en/reference/array/functions/array-filter.xml:1.5 phpdoc/en/reference/array/functions/array-filter.xml:1.6 --- phpdoc/en/reference/array/functions/array-filter.xml:1.5 Sat Oct 26 16:40:42 2002 +++ phpdoc/en/reference/array/functions/array-filter.xml Tue Apr 29 21:12:38 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.62 --> <refentry id="function.array-filter"> <refnamediv> @@ -16,11 +16,12 @@ <methodparam choice="opt"><type>callback</type><parameter>function</parameter></methodparam> </methodsynopsis> <para> - <function>array_filter</function> returns an array - containing all the elements of <parameter>input</parameter> - filtered according a callback <parameter>function</parameter>. If the - <parameter>input</parameter> is an associative array - the keys are preserved. + <function>array_filter</function> iterates over each value in + the <parameter>input</paramter> array passing them to the + <parameter>callback</parameter> function. If the <parameter> + callback</parameter> function returns true, the current + value from <parameter>input</paramter> is returned into the + result array. Array keys are preserved. </para> <para> <example>

« previous php.doc (#969352964) next »