Find Browser Name and Capabilities in PHP
Jun 28, 2009 Useful 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 ?>
Tags: php browser name, php detect visitor browser, php get browser, php get browser capabilities, php get user browser, php get user browser name, php get_browser, php get_browser() function


June 28th, 2009 at 1:38 am
[...] 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, [...]
September 4th, 2009 at 6:59 am
This site rocks!
September 20th, 2009 at 8:59 pm
I am much obliged to you!
—————————————