private static function getByCaseInsensitiveKey(array $words, $key) {
        foreach ($words as $headerWord => $value) {
            if (strcasecmp($headerWord, $key) === 0) {
                return $value;
            }
        }

        return null;
    }
private static function getByCaseInsensitiveKey(array $words, $key) {
        foreach ($words as $headerWord => $value) {
            if (strcasecmp($headerWord, $key) === 0) {
                return $value;
            }
        }

        return null;
    }
private static function getByCaseInsensitiveKey ( array $ words , $ key ) { foreach ( $ words as $ headerWord => $ value ) { if ( strcasecmp ( $ headerWord , $ key ) === 0 ) { return $ value ; } } return null ; }
Gets array item by case-insensitive key.

@param array $words
@param $key

@return ?mixed
Gets array item by case - insensitive key .