Mobile UA (User Agent) Detection Function in PHP
This is a simple PHP function to detect Mobile UA (User Agent). You can uncomment line 24 and line 28 to get which user agents got caught by this function. Returned values are ‘mobile’ if UA is mobile and ‘computer’ if not mobile.
Read More