public static function checkBrowserMozilla()
    {
        if (stripos(self::$userAgentString, 'mozilla') !== false &&
            preg_match('/rv:[0-9].[0-9][a-b]?/i', self::$userAgentString) &&
            stripos(self::$userAgentString, 'netscape') === false
        ) {
            $aversion = explode(' ', stristr(self::$userAgentString, 'rv:'));
            preg_match('/rv:[0-9].[0-9][a-b]?/i', self::$userAgentString, $aversion);
            self::$browser->setVersion(str_replace('rv:', '', $aversion[0]));
            self::$browser->setName(Browser::MOZILLA);

            return true;
        } elseif (stripos(self::$userAgentString, 'mozilla') !== false &&
            preg_match('/rv:[0-9]\.[0-9]/i', self::$userAgentString) &&
            stripos(self::$userAgentString, 'netscape') === false
        ) {
            $aversion = explode('', stristr(self::$userAgentString, 'rv:'));
            self::$browser->setVersion(str_replace('rv:', '', $aversion[0]));
            self::$browser->setName(Browser::MOZILLA);

            return true;
        } elseif (stripos(self::$userAgentString, 'mozilla') !== false &&
            preg_match('/mozilla\/([^ ]*)/i', self::$userAgentString, $matches) &&
            stripos(self::$userAgentString, 'netscape') === false
        ) {
            if (isset($matches[1])) {
                self::$browser->setVersion($matches[1]);
            }
            self::$browser->setName(Browser::MOZILLA);

            return true;
        }

        return false;
    }
public static function checkBrowserMozilla()
    {
        if (stripos(self::$userAgentString, 'mozilla') !== false &&
            preg_match('/rv:[0-9].[0-9][a-b]?/i', self::$userAgentString) &&
            stripos(self::$userAgentString, 'netscape') === false
        ) {
            $aversion = explode(' ', stristr(self::$userAgentString, 'rv:'));
            preg_match('/rv:[0-9].[0-9][a-b]?/i', self::$userAgentString, $aversion);
            self::$browser->setVersion(str_replace('rv:', '', $aversion[0]));
            self::$browser->setName(Browser::MOZILLA);

            return true;
        } elseif (stripos(self::$userAgentString, 'mozilla') !== false &&
            preg_match('/rv:[0-9]\.[0-9]/i', self::$userAgentString) &&
            stripos(self::$userAgentString, 'netscape') === false
        ) {
            $aversion = explode('', stristr(self::$userAgentString, 'rv:'));
            self::$browser->setVersion(str_replace('rv:', '', $aversion[0]));
            self::$browser->setName(Browser::MOZILLA);

            return true;
        } elseif (stripos(self::$userAgentString, 'mozilla') !== false &&
            preg_match('/mozilla\/([^ ]*)/i', self::$userAgentString, $matches) &&
            stripos(self::$userAgentString, 'netscape') === false
        ) {
            if (isset($matches[1])) {
                self::$browser->setVersion($matches[1]);
            }
            self::$browser->setName(Browser::MOZILLA);

            return true;
        }

        return false;
    }
public static function checkBrowserMozilla ( ) { if ( stripos ( self :: $ userAgentString , 'mozilla' ) !== false && preg_match ( '/rv:[0-9].[0-9][a-b]?/i' , self :: $ userAgentString ) && stripos ( self :: $ userAgentString , 'netscape' ) === false ) { $ aversion = explode ( ' ' , stristr ( self :: $ userAgentString , 'rv:' ) ) ; preg_match ( '/rv:[0-9].[0-9][a-b]?/i' , self :: $ userAgentString , $ aversion ) ; self :: $ browser -> setVersion ( str_replace ( 'rv:' , '' , $ aversion [ 0 ] ) ) ; self :: $ browser -> setName ( Browser :: MOZILLA ) ; return true ; } elseif ( stripos ( self :: $ userAgentString , 'mozilla' ) !== false && preg_match ( '/rv:[0-9]\.[0-9]/i' , self :: $ userAgentString ) && stripos ( self :: $ userAgentString , 'netscape' ) === false ) { $ aversion = explode ( '' , stristr ( self :: $ userAgentString , 'rv:' ) ) ; self :: $ browser -> setVersion ( str_replace ( 'rv:' , '' , $ aversion [ 0 ] ) ) ; self :: $ browser -> setName ( Browser :: MOZILLA ) ; return true ; } elseif ( stripos ( self :: $ userAgentString , 'mozilla' ) !== false && preg_match ( '/mozilla\/([^ ]*)/i' , self :: $ userAgentString , $ matches ) && stripos ( self :: $ userAgentString , 'netscape' ) === false ) { if ( isset ( $ matches [ 1 ] ) ) { self :: $ browser -> setVersion ( $ matches [ 1 ] ) ; } self :: $ browser -> setName ( Browser :: MOZILLA ) ; return true ; } return false ; }
Determine if the browser is Mozilla.

@return bool
Determine if the browser is Mozilla .