From:             ceo at l-i-e dot com
Operating system: All
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  array_set_current

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 bug report at http://bugs.php.net/?id=31375&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31375&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31375&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31375&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31375&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31375&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31375&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31375&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31375&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31375&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31375&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31375&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31375&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31375&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31375&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31375&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31375&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31375&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31375&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31375&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31375&r=mysqlcfg

Reply via email to