Forum Moderators: coopster
Currently I'm doing something like:
$nextkey = false;
$foundit = false;
foreach($myarray as $key => $value) {
if ($foundit) {$nextkey = $key; break;}
if ($key == $searchkey) {$foundit = true;}
}
return $nextkey;
I was hoping I could reset() the array to a particular key, and then perhaps do a next(), but this doesn't seem to be possible?
Added: The comment is by a "Colin" at 10-Feb-2007 12:31.