Req #31375 [Com]: array_set_current
Edit report at https://bugs.php.net/bug.php?id=31375&edit=1
ID: 31375
Comment by: narf at devilix dot net
Reported by: ceo at l-i-e dot com
Summary: array_set_current
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: All
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
+1
Previous Comments:
------------------------------------------------------------------------
[2011-08-23 16:14:24] datibbaw@php.net
The following patch has been added/updated:
Patch Name: reset_end_with_offset.patch.txt
Revision: 1314116064
URL: https://bugs.php.net/patch-display.php?bug=31375&patch=reset_end_with_offset.patch.txt&revision=1314116064
------------------------------------------------------------------------
[2005-01-01 21:16:05] ceo at l-i-e dot com
Description:
------------
While messing around with next/current/end/prev on large arrays, it became apparent that there is a
gaping hole in functionality:
I can't set the current internal pointer of the array to an arbitrary value. :-(
I have to walk through the whole array to the element I want as my 'current'
An array_set_current function which takes an array and integer to set the current internal pointer
to the N'th element is pretty important for quickly starting off at the right place in my
array.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=31375&edit=1
Thread (5 messages)