http://qs1969.pair.com?node_id=447417


in reply to Re: in_array and skipping foreach
in thread in_array and skipping foreach

There's no specific function for finding a value in an array.
Eh? What about grep? Seems like it would do just what the OP wanted.