I want to find the first occurrence of any of several values in an array.
$sentence = array(I, want, to, go, to, the, market);
if(in_array(array('swim','fly','go'), $sentence)) {
// Should return KEY = 3 as 'go' was found in the third key of the array
}
I'm sure this must be fairly common, how can it be done?