Find Browser Name and Capabilities in PHP

To get the browser name just use this line:

<?php
print $_SERVER['HTTP_USER_AGENT'];
?>

And to get all the browser’s features use:

<?php
print_r(get_browser(null, true));//null for user agent and true to receive an array

?>

Read Find Browser Name and Capabilities in PHP »