Sometimes, you may want to know what kind of browser is connecting to your web site. Actually such kind of information is usually stored in $_SERVER. Below is the reference:
1: <?php
2: $useragent = $_SERVER ['HTTP_USER_AGENT'];
3: echo "<b>Your User Agent is</b>: " . $useragent;