Method: browser::detect
The core detection method, which parses the user agent string
Info
Syntax
browser::detect($ua=null)
Parameters
- $ua (string) The user agent string
Return (array)
An array with all parsed info
Example
$detect = browser::detect();
// sampel output: array(
// 'browser' => 'safari',
// 'engine' => 'webkit',
// 'version' => 4,
// 'platform' => 'mac'
// );