how to check value in array php code example Example: php value in array in_array ( mixed $needle , array $haystack , bool $strict = false ) : bool