|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75787 Array iterator functions misleading
Submitted: 2018-01-09 18:33 UTC Modified: 2018-01-31 10:28 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dwilks at intacct dot com Assigned:
Status: Open Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-01-09 18:33 UTC] dwilks at intacct dot com
The documentation for current, each, key, next, prev and reset indicate that the parameter is an array.  It can also be an object.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-25 20:19 UTC]
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-31 10:28 UTC]
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Arrays related
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Oct 31 20:01:24 2020 UTC