to access the next item...
next();
to get the current item...
current();
want to step back?
prev();
want to rewind?
rewind();
handy little tools to walk an array with that don't take a whole bunch of resources to use.
array_search is nice for more complex tasks, but next and current are far less consumptive, therefor more ideal for little tasks such as yours.