git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347117 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
George Peter Banyard 2019-04-01 19:15:50 +00:00
parent b9db9e76dd
commit 6d3254ed43

View file

@ -15,13 +15,14 @@
<methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_map</function> returns an array containing all
the elements of <parameter>array1</parameter> after applying the
<parameter>callback</parameter> function to each one.
<function>array_map</function> returns an array containing
the results of applying the <parameter>callback</parameter>
function to the corresponding index of <parameter>array1</parameter>
(and <parameter>...</parameter> if more arrays are provided)
used as arguments for the callback.
The number of parameters that the <parameter>callback</parameter>
function accepts
should match the number of arrays
passed to the <function>array_map</function>
function accepts should match the number of arrays
passed to <function>array_map</function>.
</para>
</refsect1>
@ -49,7 +50,7 @@
<term><parameter>...</parameter></term>
<listitem>
<para>
Variable list of array arguments to run through the
Supplementary variable list of array arguments to run through the
<parameter>callback</parameter> function.
</para>
</listitem>
@ -61,8 +62,10 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns an array containing all the elements of <parameter>array1</parameter>
after applying the <parameter>callback</parameter> function to each one.
Returns an array containing the results of applying the <parameter>callback</parameter>
function to the corresponding index of <parameter>array1</parameter>
(and <parameter>...</parameter> if more arrays are provided)
used as arguments for the callback.
</para>
</refsect1>