isMobile() ) { echo "mobile"; } // Any tablet device. if( $detect->isTablet() ){ echo "tablet"; } // Exclude tablets. if( $detect->isMobile() && !$detect->isTablet() ){ } // Check for a specific platform with the help of the magic methods: if( $detect->isiOS() ){ } if( $detect->isAndroidOS() ){ } ?>