Regular expression to detect Internet Explorer 11

后端 未结 8 1981
逝去的感伤
逝去的感伤 2021-01-11 18:43

I am using this preg_match string

preg_match(\'/Trident/7.0; rv:11.0/\',$_SERVER[\"HTTP_USER_AGENT\"]

to detect IE11 so I can

8条回答
  •  梦谈多话
    2021-01-11 19:33

    I would use the browscap project to get this data myself. It's faster and more reliable

提交回复
热议问题