Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/243.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从PHP检测Internet Explorer(也是版本11)_Php_Internet Explorer_Browser Detection - Fatal编程技术网

从PHP检测Internet Explorer(也是版本11)

从PHP检测Internet Explorer(也是版本11),php,internet-explorer,browser-detection,Php,Internet Explorer,Browser Detection,在PHP(包括IE 11在内的任何版本)中检测Internet Explorer的正确方法是什么 尝试: f(!(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))){ 以上内容对我不起作用。我发现“获取浏览器属性”

在PHP(包括IE 11在内的任何版本)中检测Internet Explorer的正确方法是什么

尝试:

f(!(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || 
   strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))){

以上内容对我不起作用。

我发现“获取浏览器属性”功能对我起作用。

请查看(如果您还没有)这是否有帮助。那里有一些关于三叉戟的信息。可能是