Skip to content

Commit e8c8381

Browse files
committed
array_map() maps values, not indexes
Cf. <https://news-web.php.net/php.doc/969388082>.
1 parent ddce0c4 commit e8c8381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/array/functions/array-map.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<para>
1818
<function>array_map</function> returns an &array; containing
1919
the results of applying the <parameter>callback</parameter>
20-
to the corresponding index of <parameter>array</parameter>
20+
to the corresponding value of <parameter>array</parameter>
2121
(and <parameter>arrays</parameter> if more arrays are provided)
2222
used as arguments for the callback.
2323
The number of parameters that the <parameter>callback</parameter>
@@ -71,7 +71,7 @@
7171
&reftitle.returnvalues;
7272
<para>
7373
Returns an array containing the results of applying the <parameter>callback</parameter>
74-
function to the corresponding index of <parameter>array</parameter>
74+
function to the corresponding value of <parameter>array</parameter>
7575
(and <parameter>arrays</parameter> if more arrays are provided)
7676
used as arguments for the callback.
7777
</para>

0 commit comments

Comments
 (0)