Method: browser::detect

The core detection method, which parses the user agent string

Info

Syntax

browser::detect($ua=null)

Parameters

Return (array)

An array with all parsed info

Example


$detect = browser::detect();
// sampel output: array(
//    'browser' => 'safari',
//    'engine'  => 'webkit',
//    'version' => 4,
//    'platform' => 'mac'
// );