PHP : How to check Browser on Server Side using HTTP_USER_AGENT

Being a PHP Programmer sometime you need to check the browser and browser version to resolve some coding bug or change the functionality as per the browser. Internet Explorer is always a headache for me and this is why sometimes i need to check the Internet Explorer Version while coding. So today i am sharing a very simple PHP code to check the browser on Server Side using HTTP_USER_AGENT. Hope this will save your soul in need.