iPad userAgent string has no 'iPad' or 'iPhone' in the string any longer.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.7 Safari/605.1.15
Will the folliwing return true with iPads and false with all other Apple/Macs computers and iPhones?
.. = preg_match("/Macintosh;\sIntel\sMac\sOS\sX\s[\d]{2,4}_[\d]{1,8}_[\d]{1,4}/i", $_SERVER["HTTP_USER_AGENT");
If any one has a Mac that's not an iPad, please post user agent.
I am using PHP so can't use javascript
'ontouchstart' in window or navigator.msMaxTouchPoints or screen.width etc.