public static function doesArrayHaveValueForKey(array &$array, string $key, bool $ignoreCase = false, bool $deepSearchDotNotation = false): bool
    {
        return !is_null(self::getArrayValueForKeyOrDefault($array, $key, null, $ignoreCase, $deepSearchDotNotation));
    }
public static function doesArrayHaveValueForKey(array &$array, string $key, bool $ignoreCase = false, bool $deepSearchDotNotation = false): bool
    {
        return !is_null(self::getArrayValueForKeyOrDefault($array, $key, null, $ignoreCase, $deepSearchDotNotation));
    }
public static function doesArrayHaveValueForKey ( array & $ array , string $ key , bool $ ignoreCase = false , bool $ deepSearchDotNotation = false ) : bool { return ! is_null ( self :: getArrayValueForKeyOrDefault ( $ array , $ key , null , $ ignoreCase , $ deepSearchDotNotation ) ) ; }
Checks if the given key exists in an array.

@param array $array
The array to check.

@param string $key
The key to check for.

@param bool $ignoreCase
[optional]
Whether to treat lowercase and uppercase letters as equivalent during the search.

@param bool $deepSearchDotNotation
[optional]
Use $key as a detailed path specifier with path elements separated by a dot.
E.g: path.to.value will try to find $array['path']['to']['value'] in addition to $array['path.to.value'].

@return bool Whether the key is found in the array.
Checks if the given key exists in an array .