PHP Get Browser Information

PHP Get Browser Information tutorial gives you an example to get your browser information

 
 

Share on Google+Share on Google+

PHP Get Browser Information

Ads

PHP Get Browser Information tutorial gives you an example to get your browser information

PHP Get Browser Info

PHP provides us  $_SERVER['HTTP_USER_AGENT'] function is used to display the browser information

Code for PHP Get Browser Info:

<?php

echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";

?>

Output:

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13

Advertisements

Posted on: October 9, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles