private function isSafariMobile()
  {
    $is = false;
    $tablet = false;
    $phone = false;
    if ( $this->browser == 'safari' || $this->isSafari() )
    {
      // We aren't differentiating between Safari and Apps. It doesn't matter for our purposes.
      // We also don't care if it's an iPod or iPhone, it's the size we care about.
      if ( preg_match("/(iPhone|iPod|iPad)/", $this->ua, $matches ) )
      {
        $is = true;
        $tablet = ( $matches[1] == 'iPad' );
        $phone = ($matches[1] == 'iPhone' || $matches[1] == 'iPod');
      }
    }

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

    return $is;
  }
private function isSafariMobile()
  {
    $is = false;
    $tablet = false;
    $phone = false;
    if ( $this->browser == 'safari' || $this->isSafari() )
    {
      // We aren't differentiating between Safari and Apps. It doesn't matter for our purposes.
      // We also don't care if it's an iPod or iPhone, it's the size we care about.
      if ( preg_match("/(iPhone|iPod|iPad)/", $this->ua, $matches ) )
      {
        $is = true;
        $tablet = ( $matches[1] == 'iPad' );
        $phone = ($matches[1] == 'iPhone' || $matches[1] == 'iPod');
      }
    }

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

    return $is;
  }
private function isSafariMobile ( ) { $ is = false ; $ tablet = false ; $ phone = false ; if ( $ this -> browser == 'safari' || $ this -> isSafari ( ) ) { // We aren't differentiating between Safari and Apps. It doesn't matter for our purposes. // We also don't care if it's an iPod or iPhone, it's the size we care about. if ( preg_match ( "/(iPhone|iPod|iPad)/" , $ this -> ua , $ matches ) ) { $ is = true ; $ tablet = ( $ matches [ 1 ] == 'iPad' ) ; $ phone = ( $ matches [ 1 ] == 'iPhone' || $ matches [ 1 ] == 'iPod' ) ; } } if ( $ is ) { $ this -> android = false ; $ this -> ios = true ; $ this -> tablet = $ tablet ; $ this -> phone = $ phone ; $ this -> mobile = true ; $ this -> touch = true ; } return $ is ; }
Determines if the browser is Safari Mobile by the User Agent String.

@return bool
Determines if the browser is Safari Mobile by the User Agent String .