NukeViet\Client\Browser::getSafariVersionOnIos PHP Method

getSafariVersionOnIos() protected method

Detect Version for the Safari browser on iOS devices
protected getSafariVersionOnIos ( ) : boolean
return 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;
    }