Andrew McCombe

Full Stack Web Developer

Detect iPad and iPhone with PHP

If you ever have the need to detect iPad and iPhone with PHP, or any other mobile/tablet device, you can use the excellent php-mobile-detect library available at Example usage: < ?php require_once "Mobile_Detect.php"; $detect = new Mobile_Detect(); if ($device->isMobile()) { // code for mobile devices } if ($device->isTablet()) { // code for tablet devices […]