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

?>

3 Responses to “Find Browser Name and Capabilities in PHP”

  1. XkiD | PHP Tutorial : Get Browser Name & It’s Capabilities | blog.xkid.ro Says:

    [...] original here:  PHP Tutorial : Get Browser Name & It’s Capabilities Posted in PHP | Tags: features, for-all, get-browser, null-for, read-more, return-array, [...]


  2. Bill Bartmann Says:

    This site rocks!


  3. generic proscar Says:

    I am much obliged to you!
    —————————————


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>