Tell what the user's browser is capable of by listing all information about the users browser in PHP

Description

The following code shows how to tell what the user's browser is capable of by listing all information about the users browser.

Example


// w  w  w. j av a2s. co  m

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

$browser = get_browser(null, true);
print_r($browser);
?>




















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions