check if an element is in array php code example
Example 1: php value in array
in_array ( mixed $needle , array $haystack , bool $strict = false ) : bool
Example 2: in_array
<?
in_array("Irix", $os);
?>
in_array ( mixed $needle , array $haystack , bool $strict = false ) : bool
<?
in_array("Irix", $os);
?>