Patch doc-fix-70655 for Arrays related Bug #70655
Patch version 2019-01-20 17:56 UTC
Return to Bug #70655 |
Download this patch
Patch Revisions:
Developer: girgias@php.net
--- en/reference/array/functions/array-map.xml
+++ en/reference/array/functions/array-map.xml
@@ -11,17 +11,16 @@
<methodsynopsis>
<type>array</type><methodname>array_map</methodname>
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
- <methodparam><type>array</type><parameter>array1</parameter></methodparam>
<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>...</parameter>
+ used as arguments of 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 the <function>array_map</function>.
</para>
</refsect1>
@@ -38,14 +37,6 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><parameter>array1</parameter></term>
- <listitem>
- <para>
- An array to run through the <parameter>callback</parameter> function.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
<term><parameter>...</parameter></term>
<listitem>
<para>
@@ -61,8 +52,9 @@
<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>...</parameter>
+ used as arguments of the callback.
</para>
</refsect1>
|