Code to parse user agent string?

后端 未结 5 2050
礼貌的吻别
礼貌的吻别 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:27

    You can try to use: https://github.com/tobie/ua-parser. This is multi-language tool to parsing user agent string. For PHP is here: https://github.com/tobie/ua-parser/tree/master/php

提交回复
热议问题