MobileDetector is a script that will detect if the user is an agent and if possible the mobile type.
If you wish to test the product give the MobileDetector demo a try.
Basic usage example:
<?php
require_once(dirname(dirname(__FILE__)) . '/library/MobileDetector.php');
$detector = new MobileDetector();
$isMobile = $detector->isMobile();
if ($isMobile) {
$mobileType = $detector->getMobileType();
echo 'Detected mobile: ' . $mobileType;
} else {
echo 'Not mobile.';
}
?>
The following mobile types are detected:
You can buy it now from binpress.com.
Here is the documentation for PHP Mobile Detector.