We save USER_AGENT in $user_agent variable and display it.
Internet Explorer has in USER_AGENT text MSIE – Microsoft Internet Explorer. So we need to check if our variable has MSIE text in it.
You can play with other browsers and see the result of USER_AGENT. After that add it to an if else statement if you need.