public static isIn ( mixed $needle, array | Traversable $haystack, boolean $strict = false ) : boolean | ||
$needle | mixed | The value to look for. |
$haystack | array | Traversable | The set of values to search. |
$strict | boolean | Whether to enable strict (`===`) comparison. |
return | boolean | `true` if `$needle` was found in `$haystack`, `false` otherwise. |