Bug #75787 [Com]: Array iterator functions misleading
| From: | vrana@php.net | Date: | Thu, 25 Jan 2018 20:19:09 +0000 |
| Subject: | Bug #75787 [Com]: Array iterator functions misleading | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15359@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
Comment by: vrana@php.net
Reported by: dwilks at intacct dot com
Summary: Array iterator functions misleading
Status: Open
Type: Bug
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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).
Previous Comments:
------------------------------------------------------------------------
[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