Detect Browser with PHP


/ Published in: PHP
Save to your folder(s)

Helps to find out browser version and type your website visitor is using.


Copy this code and paste it in your HTML
  1. <?php
  2. $useragent = $_SERVER['HTTP_USER_AGENT'];
  3. echo "<b>Your User Agent is</b>: ".$useragent;
  4. ?>

URL: http://www.apphp.com/index.php?snippet=php-detect-browser

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.