$base_position = key($myarray);
I then do various reads back and forth in the array usingprev($myarray);
andnext($myarray);
at the end of the routine I want to be able to go back to my base position in the array using the key that I saved in $base_position
Open in new window