PHP Tutorial : Get Browser Name & It’s Capabilities

To get browser name just use next thing :

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

And for all the features of browser user :

<?php
print_r(get_browser(null, true));//null for user agent &amp; true to return array

?>
This entry was posted in Usefull PHP and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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