Code to parse user agent string?

后端 未结 5 2060
礼貌的吻别
礼貌的吻别 2020-12-01 16:00

As strange as I find this, I have not been able to find a good PHP function anywhere which will do an intelligent parse of a user agent string? Googled it for about 20 minut

5条回答
  •  情话喂你
    2020-12-01 16:20

    There is a PHP class library i found out, and it has worked so well for me. It is in the link below.

    https://www.toms-world.org/blog/parseuseragentstring

    It is lightweight and just does what I wanted (Browser, Version, OS, Mobile/PC, and much more) in a memory-friendy manner.

提交回复
热议问题