[doc-en] master: array-map.xml Change the misleading wording (#4802)

From: Date: Thu, 16 Oct 2025 14:14:18 +0000
Subject: [doc-en] master: array-map.xml Change the misleading wording (#4802)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-22814@lists.php.net to get a copy of this message
Author: Mikhail Alferov (mmalferov) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2025-10-16T15:14:14+01:00 Commit: https://github.com/php/doc-en/commit/1f5bcc30ee06e452b98362460ea7b7bf2b20f4a1 Raw diff: https://github.com/php/doc-en/commit/1f5bcc30ee06e452b98362460ea7b7bf2b20f4a1.diff array-map.xml Change the misleading wording (#4802) * array-map.xml Change the misleading wording Keys of input arrays are ignored. The function only considers the sequential order of elements (as determined by their internal pointers), not their indices * Update reference/array/functions/array-map.xml Co-authored-by: Kamil Tekiela <tekiela246@gmail.com> --------- Co-authored-by: Kamil Tekiela <tekiela246@gmail.com> Changed paths: M reference/array/functions/array-map.xml Diff: diff --git a/reference/array/functions/array-map.xml b/reference/array/functions/array-map.xml index fc2eea2421cd..b1c6a8aacfa2 100644 --- a/reference/array/functions/array-map.xml +++ b/reference/array/functions/array-map.xml @@ -41,7 +41,8 @@ <para> &null; can be passed as a value to <parameter>callback</parameter> to perform a zip operation on multiple arrays and return an array - whose elements are each an array holding the elements of the input arrays of the same index (see example below). + where each element is an array containing the elements from the input arrays at the + same position of the internal array pointer (see example below). If only <parameter>array</parameter> is provided, <methodname>array_map</methodname> will return the input array. </para>

« previous php.doc.cvs (#22814) next »