My contemplations and diurnal novelties are publicized here


It can be simply get through.

var_dump($_SERVER[‘HTTP_USER_AGENT’]);

Or you can use Zend_Http_UserAgent class

$userAgent = new Zend_Http_UserAgent();
$device = $userAgent->getDevice();
$browser = $device->getBrowser();
var_dump($browser);
$browser = $device->getBrowserVersion();
var_dump($browser);
$browser = $device->getAllFeatures();
var_dump($browser);
$browser = $device->getUserAgent();
var_dump($browser);               

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: