NukeViet\Client\Browser::getSafariVersionOnIos PHP Méthode

getSafariVersionOnIos() protected méthode

Detect Version for the Safari browser on iOS devices
protected getSafariVersionOnIos ( ) : boolean
Résultat boolean True if it detects the version correctly otherwise false
    protected function getSafariVersionOnIos()
    {
        $aresult = explode('/', stristr($this->_agent, 'Version'));
        if (isset($aresult[1])) {
            $aversion = explode(' ', $aresult[1]);
            $this->setVersion($aversion[0]);
            return true;
        }
        return false;
    }