public function getMostSpecific(array $userAgents)
    {
        $array = [];
        foreach ($userAgents as $string) {
            // Strip non-US-ASCII characters
            $array[$string] = strtolower($this->strip($string));
        }
        foreach (array_map('strtolower', $this->getUserAgents()) as $generated) {
            if (($result = array_search($generated, $array)) !== false) {
                // Match found
                return $result;
            }
        }
        return false;
    }
public function getMostSpecific(array $userAgents)
    {
        $array = [];
        foreach ($userAgents as $string) {
            // Strip non-US-ASCII characters
            $array[$string] = strtolower($this->strip($string));
        }
        foreach (array_map('strtolower', $this->getUserAgents()) as $generated) {
            if (($result = array_search($generated, $array)) !== false) {
                // Match found
                return $result;
            }
        }
        return false;
    }
public function getMostSpecific ( array $ userAgents ) { $ array = [ ] ; foreach ( $ userAgents as $ string ) { // Strip non-US-ASCII characters $ array [ $ string ] = strtolower ( $ this -> strip ( $ string ) ) ; } foreach ( array_map ( 'strtolower' , $ this -> getUserAgents ( ) ) as $ generated ) { if ( ( $ result = array_search ( $ generated , $ array ) ) !== false ) { // Match found return $ result ; } } return false ; }
Find the best matching User-agent

@param string[] $userAgents
@return string|false
Find the best matching User - agent