PHP function in_array(mixed $needle, array $haystack, bool $strict = false) bool
----------------------------------------------------------------------------
Checks if a value exists in an array
Parameters:
mixed--$needle--The searched value. If needle is a string, the comparison is done in a case-sensitive manner.
array--$haystack--The array.
bool--$strict--[optional].If the third parameter strict is set to true then the in_array function will also check the types of the needle in the haystack.
Returns: true if needle is found in the array, false otherwise.
Example:
---------
$os = array("Mac", "NT", "Irix", "Linux");
if (in_array("Irix", $os)) {
echo "Got Irix";
}
if (in_array("mac", $os)) {
echo "Got mac";
}