How to find Browsers information in PHP?

$browser = get_browser(null, true);
print_r($browser);

&

echo $_SERVER[‘HTTP_USER_AGENT’] . “\n\n”;