Doc #75787 [Ver->Csd]: Array iterator functions misleading
| From: | cmb@php.net | Date: | Fri, 12 Feb 2021 12:16:47 +0000 |
| Subject: | Doc #75787 [Ver->Csd]: Array iterator functions misleading | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18531@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75787&edit=1
ID: 75787
Updated by: cmb@php.net
Reported by: dwilks at intacct dot com
Summary: Array iterator functions misleading
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Arrays related
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a6655e3f9508eee6860b02f55e33560a790f42d1
Log: Fix #75787: Array iterator functions misleading
Previous Comments:
------------------------------------------------------------------------
[2021-02-12 11:55:37] cmb@php.net
The documentation has mostly been fixed in the meantime (except
for each()). For array_key_exists() there is already a respective
note[1]; this should be clarified (explicitly deprecated as of PHP
7.4.0, no longer supported as of PHP 8.0.0).
[1] <https://www.php.net/manual/en/function.array-key-exists.php#refsect1-function.array-key-exists-notes>
------------------------------------------------------------------------
[2018-01-25 20:19:08] vrana@php.net
It's also true for end, array_key_exists, array_walk, array_walk_recursive. There's no
limitation on the object (i.e. it doesn't need to implement any interface).
------------------------------------------------------------------------
[2018-01-09 18:33:15] dwilks at intacct dot com
Description:
------------
The documentation for current, each, key, next, prev and reset indicate that the parameter is an
array. It can also be an object.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75787&edit=1