php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25040 support one more param of each()
Submitted: 2003-08-11 08:49 UTC Modified: 2014-12-30 10:41 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: xuefer at 21cn dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: * OS: Irrelevant
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-08-11 08:49 UTC] xuefer at 21cn dot com
Description:
------------
$element = each($array, 1); // same as current
$element = each($array, -1); // same as current, but move backword
$element = each($array, 2); // same as current, but step is 2

function prototype:
array each ( array array, [int step = 1]);
step=0 is invalidate(for loop) or validate for equal to "current()"

hope it'll be added


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-17 14:19 UTC] levim@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Operating System: all +Operating System: Irrelevant -PHP Version: 4.3.3RC3 +PHP Version: *
 [2014-04-17 14:19 UTC] levim@php.net
Is this something you are still interested in seeing?
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC