Hey I'm trying to detect if I am requesting a php website with an ipad. I know this should be possible with
if(stristr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
but if I just echo my User agent I get this:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15(KHTML, like Gecko) Version/13.1.1 Safari/605.1.15
I know there are many classes etc. to detect that like mobiledetect.. but they are all using the User agent and mine has no ipad in. So what am I doing wrong?