【问题标题】:Detect Internet Explorer from PHP (version 11 too)从 PHP 中检测 Internet Explorer(版本 11)
【发布时间】:2015-05-29 09:43:21
【问题描述】:

在 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 internet-explorer browser-detection


【解决方案1】:

我发现http://buffernow.com/get-browser-properties-without-browscap-in-php/ 上的 get_browser_properties 函数对我有用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-20
    • 2012-03-10
    • 1970-01-01
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多