PHP Detect Browser

How can I detect browser using php.You can use php server variable $_SERVER[‘HTTP_USER_AGENT’] for this.It will return about the user’s operating system, as well as their browser.It contents of the User-Agent header from the current request. So simply you can…