Both goleztrol and clive have the right answers. in_array is a simple true/false, while array_search returns the corresponding key if the value is found. Whichever of the two you use depends on what you need to do.
@MarcB In this case in_array is the best. I thought of it only after posting array_search, but since Clive suggested in_array as well by that time, I removed my answer.
in_arrayis the best. I thought of it only after postingarray_search, but since Clive suggestedin_arrayas well by that time, I removed my answer.in_array()is basicallyarray_search(..) !== FALSE.