Korvin commented on a Page, Array peek  -  Oct 03, 2011
function array_peek($a,$k) {
    $a=array_keys($a);
    return (array_search($k,$a)!=count($a)-1?$a[array_search($k,$a)+1]:false);
}

That's how I'd do it =]

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.