PHP FAQ's
Php Faq's
By using 
$_SERVER['HTTP_USER_AGENT']
variable.