php.net |  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
Votes:1
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dwilks at intacct dot com
New email:
PHP Version: OS:

 

 [2018-01-09 18:33 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-25 20:19 UTC] 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-31 10:28 UTC] vrana@php.net
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Arrays related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 20 13:01:26 2019 UTC