public function parse($string, $strict = true)
    {
        // Parse quickly (with medium accuracy)
        $information = $this->doParse($string);

        // Run some filters to increase accuracy
        if ($strict) {
            $information = $this->definition->filter($information);
        }

        return $information;
    }
public function parse($string, $strict = true)
    {
        // Parse quickly (with medium accuracy)
        $information = $this->doParse($string);

        // Run some filters to increase accuracy
        if ($strict) {
            $information = $this->definition->filter($information);
        }

        return $information;
    }
public function parse ( $ string , $ strict = true ) { // Parse quickly (with medium accuracy) $ information = $ this -> doParse ( $ string ) ; // Run some filters to increase accuracy if ( $ strict ) { $ information = $ this -> definition -> filter ( $ information ) ; } return $ information ; }
Parses a user agent string.

@param string $string The user agent string
@param bool $strict Enable strict mode. This makes the parser run a bit slower but increases the accuracy significantly.

@return array Returns the user agent information:

- `string`:           The original user agent string
- `browser_name`:     The browser name, e.g. `"chrome"`
- `browser_version`:  The browser version, e.g. `"43.0"`
- `browser_engine`:   The browser engine, e.g. `"webkit"`
- `operating_system`: The operating system, e.g. `"linux"`
Parses a user agent string .