Download address http://code.google.com/p/php-mobile-detect/
The program is just a file. You can directly reference it after downloading it. It is an open source PHP program based on the MIT License
Usage:
Copy code The code is as follows:
include("Mobile_Detect. php");
$detect = new Mobile_Detect();
if ($detect->isMobile()) {
// any mobile platform
echo 'isMobile';
}
else{
echo 'isPC';
}
?>
http://www.bkjia.com/PHPjc/676861.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/676861.htmlTechArticleDownload address http://code.google.com/p/php-mobile-detect/ The program is a file , you can directly quote it after downloading. How to use the open source PHP program based on the MIT License: Copy...