(PHP 4, PHP 5, PHP 7)
get_browser — Tells what the user's browser is capable of
mixed get_browser ([ string
Attempts to determine the capabilities of the user's browser, by looking up the browser's information in the browscap.ini file.
The information is returned in an object or an array which will contain
various data elements representing, for instance, the browser's major and
minor version numbers and ID string;
The cookies value simply means that the browser itself is capable of accepting cookies and does not mean the user has enabled the browser to accept cookies or not. The only way to test if cookies are accepted is to set one with setcookie(), reload, and check for the value.
Example #1 Listing all information about the users browser
The above example will output something similar to: