NukeViet\Client\Browser::checkBrowserPhoenix PHP Method

checkBrowserPhoenix() protected method

Determine if the browser is Phoenix or not (last updated 1.7)
protected checkBrowserPhoenix ( ) : boolean
return boolean True if the browser is Phoenix otherwise false
    protected function checkBrowserPhoenix()
    {
        if (stripos($this->_agent, 'Phoenix') !== false) {
            $aversion = explode('/', stristr($this->_agent, 'Phoenix'));
            if (isset($aversion[1])) {
                $this->setVersion($aversion[1]);
                $this->setBrowser(self::BROWSER_PHOENIX, self::BROWSER_PHOENIX_NAME);
                return true;
            }
        }
        return false;
    }