Doc #78848 [Opn->Csd]: Important info about return values is tucked away at the end of fourth example
| From: | cmb@php.net | Date: | Sun, 08 Dec 2019 15:19:04 +0000 |
| Subject: | Doc #78848 [Opn->Csd]: Important info about return values is tucked away at the end of fourth example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17092@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78848&edit=1
ID: 78848
Updated by: cmb@php.net
Reported by: roy-orbison at devo dot net dot au
Summary: Important info about return values is tucked away at
the end of fourth example
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2019-12-08 15:18:50] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=348465
Log: Fix #78848: Important info about return values is tucked away at the end of fourth example
------------------------------------------------------------------------
[2019-11-21 07:58:59] roy-orbison at devo dot net dot au
Description:
------------
---
From manual page: https://php.net/function.array-map
---
There's a rather important note at the end of example #4:
"The returned array will preserve the keys of the array argument if and only if exactly one
array is passed. If more than one array is passed, the returned array will have sequential integer
keys."
This info should be in the main "Return Values" section, and only be referred to by that
example.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78848&edit=1