in_array

Example

 bool in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) 

Description

Searches haystack for needle using loose comparison unless strict is set.

Return Values

Returns TRUE if needle is found in the array, FALSE otherwise.