On Tue, Mar 16, 2010 at 4:22 PM, Derick Rethans <der...@php.net> wrote: > I was also thinking, can we just make this work just like fseek (with a > "whence" parameter) as well? (http://uk3.php.net/fseek)
Hi, not sure how SEEK_END is supposed to work with arrays but here is SEEK_SET and SEEK_CUR (with positive and negative offset) http://valokuva.org/~mikko/array_seek_whence.patch.txt -- Mikko Koppanen -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php