Using Philip's suggested text.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@125130 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Joey Smith 2003-04-30 01:12:38 +00:00
parent 11697d75f4
commit 00af2cbfb3

View file

@ -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>