private function isEdge()
  {
    if ( preg_match("/Edge (([0-9]+)\.?([0-9]*))/", $this->ua, $matches) )
    {
      // Nothing is known to try to look like a faux Edge, but we'll still exclude 'bots'
      if( stripos( $this->ua, 'bot' ) === false )
      {
        $this->browser = "edge";
        $this->version = $matches[ 1 ];
        $this->major   = $matches[ 2 ];
        $this->minor   = $matches[ 3 ];
      }
    }

    return false;
  }
private function isEdge()
  {
    if ( preg_match("/Edge (([0-9]+)\.?([0-9]*))/", $this->ua, $matches) )
    {
      // Nothing is known to try to look like a faux Edge, but we'll still exclude 'bots'
      if( stripos( $this->ua, 'bot' ) === false )
      {
        $this->browser = "edge";
        $this->version = $matches[ 1 ];
        $this->major   = $matches[ 2 ];
        $this->minor   = $matches[ 3 ];
      }
    }

    return false;
  }
private function isEdge ( ) { if ( preg_match ( "/Edge (([0-9]+)\.?([0-9]*))/" , $ this -> ua , $ matches ) ) { // Nothing is known to try to look like a faux Edge, but we'll still exclude 'bots' if ( stripos ( $ this -> ua , 'bot' ) === false ) { $ this -> browser = "edge" ; $ this -> version = $ matches [ 1 ] ; $ this -> major = $ matches [ 2 ] ; $ this -> minor = $ matches [ 3 ] ; } } return false ; }
Determines if a browser is Microsoft Edge by the user agent string.

@return bool
Determines if a browser is Microsoft Edge by the user agent string .