A PHP script that identifies with a user agent what a device (mobile device) is?

I am trying to write php script that return device from user agent in header.

The problem that I see is not just making a regular expression, because the difference is between the device (am I wrong?)

so I want an updated list of mobile device according to user agent

I found this list: List of user agents for mobile phones

I am trying to find an updated xml / feed that I can use for all kinds

or in another way that you think is best for this.

thank.

+3
source share
3 answers

script

http://detectmobilebrowsers.mobi/

.

, , mobile_device_detect.php, mobile_device_detect() (Android, IPhone,...),

+1

Source: https://habr.com/ru/post/1776850/


All Articles