private function isChromeMobile()
  {
    $is = false;
    $android = false;
    $ios = false;
    $tablet = false;
    $phone = false;
    if ( $this->browser == 'chrome' || $this->isChrome() )
    {
      // We aren't differentiating between Chrome and webview.  It doesn't matter for our purposes.
      if ( stripos( $this->ua, 'android' ) !== false )
      {
        $is = true;
        $android = true;
        $tablet = ( stripos( $this->ua, 'mobile' ) !== false ) ? false : true;
        $phone = ($tablet) ? false : true;
      }
      // Only says this on iOS.  Where it's really Safari.  Yuck.
      elseif ( strpos( $this->ua, 'CriOS' ) !== false )
      {
        $is = true;
        $ios = true;
        $phone = preg_match("/(iPhone|iPod)/", $this->ua );
        $tablet = (strpos($this->ua, 'iPad') !== false) ? true : false;
      }
    }

    if ( $is )
    {
      $this->android = $android;
      $this->ios = $ios;
      $this->tablet = $tablet;
      $this->phone = $phone;
      $this->mobile = true;
      $this->touch = true;
    }

    return $is;
  }
private function isChromeMobile()
  {
    $is = false;
    $android = false;
    $ios = false;
    $tablet = false;
    $phone = false;
    if ( $this->browser == 'chrome' || $this->isChrome() )
    {
      // We aren't differentiating between Chrome and webview.  It doesn't matter for our purposes.
      if ( stripos( $this->ua, 'android' ) !== false )
      {
        $is = true;
        $android = true;
        $tablet = ( stripos( $this->ua, 'mobile' ) !== false ) ? false : true;
        $phone = ($tablet) ? false : true;
      }
      // Only says this on iOS.  Where it's really Safari.  Yuck.
      elseif ( strpos( $this->ua, 'CriOS' ) !== false )
      {
        $is = true;
        $ios = true;
        $phone = preg_match("/(iPhone|iPod)/", $this->ua );
        $tablet = (strpos($this->ua, 'iPad') !== false) ? true : false;
      }
    }

    if ( $is )
    {
      $this->android = $android;
      $this->ios = $ios;
      $this->tablet = $tablet;
      $this->phone = $phone;
      $this->mobile = true;
      $this->touch = true;
    }

    return $is;
  }
private function isChromeMobile ( ) { $ is = false ; $ android = false ; $ ios = false ; $ tablet = false ; $ phone = false ; if ( $ this -> browser == 'chrome' || $ this -> isChrome ( ) ) { // We aren't differentiating between Chrome and webview.  It doesn't matter for our purposes. if ( stripos ( $ this -> ua , 'android' ) !== false ) { $ is = true ; $ android = true ; $ tablet = ( stripos ( $ this -> ua , 'mobile' ) !== false ) ? false : true ; $ phone = ( $ tablet ) ? false : true ; } // Only says this on iOS.  Where it's really Safari.  Yuck. elseif ( strpos ( $ this -> ua , 'CriOS' ) !== false ) { $ is = true ; $ ios = true ; $ phone = preg_match ( "/(iPhone|iPod)/" , $ this -> ua ) ; $ tablet = ( strpos ( $ this -> ua , 'iPad' ) !== false ) ? true : false ; } } if ( $ is ) { $ this -> android = $ android ; $ this -> ios = $ ios ; $ this -> tablet = $ tablet ; $ this -> phone = $ phone ; $ this -> mobile = true ; $ this -> touch = true ; } return $ is ; }
Determines if the browser is Chrome on a mobile device by the user agent string.

@return bool
Determines if the browser is Chrome on a mobile device by the user agent string .