问题是,如何使用PHP检测任何IE版本?
我看过用于检测IE特定版本的PHP脚本,但我无法找到检测任何版IE的方法。谢谢你的帮助。
答案 0 :(得分:2)
<?php
function ae_detect_ie()
{
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
return true;
else
return false;
}
?>
取自:http://www.anyexample.com/programming/php/how_to_detect_internet_explorer_with_php.xml