Forum Moderators: coopster
$array (
0 => "zero",
1 => "one",
2 => "two"
)
If $value = 'one', I want to call the next one: 'two'.
I tried using:
$mykey = array_search('one', $array); // $mykey now = 1
Is there a way to return the array value where $key = $mykey + 1?
Or some other way?