转自:http://www.oschina.net/p/php-mobile-detect

 

php-mobile-detect (Mobile_Detect) 是一个 PHP 类,用来通过 User-Agent 检测各种手机设备。

示例代码:

include("Mobile_Detect.php");
$detect
=newMobile_Detect();
if($detect->iOS()){
   
// code to run for the Apple iOS platform.
}
if($detect->isAndroidOS()){
   
// code to run for the Google Android platform.
}
if($detect->isMobile()){
   
// any mobile platform
}
if($detect->isTablet()){
   
// any tablet
}


下载地址: http://code.google.com/p/php-mobile-detect/downloads/list
     http://mobiledetect.net/

JS CHECK OS : http://quojs.tapquo.com/

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-10-23
  • 2021-12-31
  • 2021-11-04
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
相关资源
相似解决方案