In order to check what sort of browser the visitor is using, we can make use of the user agent string the browser sends as a part of HTTP request.
$_SERVER[‘HTTP_USER_AGENT’]
$_SERVER is a special reserved PHP variable that contains all web server information. It is known as superglobals.