0

The question is, how to detect any IE version using PHP?

I seen PHP scripts that detect specific versions of IE, but I was unable to find a way to detect any version of IE. Thanks for your help.

Egor305
  • 49
  • 4

1 Answers1

3
<?php
function ae_detect_ie()
{
    if (isset($_SERVER['HTTP_USER_AGENT']) && 
    (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
        return true;
    else
        return false;
}
?>

taken from : http://www.anyexample.com/programming/php/how_to_detect_internet_explorer_with_php.xml

nettux
  • 5,270
  • 2
  • 23
  • 33