check if the element exists in array php code example
Example 1: in_array
<?
in_array("Irix", $os);
?>
Example 2: in_array
in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) : bool
<?
in_array("Irix", $os);
?>
in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) : bool