Doc #75787 [Opn->Ver]: Array iterator functions misleading
| From: | cmb@php.net | Date: | Fri, 12 Feb 2021 11:55:37 +0000 |
| Subject: | Doc #75787 [Opn->Ver]: Array iterator functions misleading | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18528@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: Open
+Status: Verified
Type: Documentation Problem
Package: Arrays related
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[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