How to discover user's browser



<html>
    <head>
        <title>Example</title>
    </head>

    <body> 
        <?php 
        $useragent = $HTTP_SERVER_VARS["HTTP_USER_AGENT"];
	echo $useragent; 
        ?>

    </body>
</html>

Output:
Mozilla/4.5 [en]C-CCK-MCD {Sony} (Win98; U)