Is there any function which will accomplish the equivalent of array_search with a $needle that is an array? Like, this would be an ideal solution:
$needle = array('first', 'second');
$haystack = array('fifth','second','third', 'first');
// Returns key 1 in haystack
$search = array_search( $needle, $haystack );
If no function, any other functions that accept needles which may be arrays that I can use to create a custom function?