| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
openkk
13年前发布

检测手机设备种类的 PHP 类 - php-mobile-detect

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

示例代码:

include("Mobile_Detect.php");  $detect = new Mobile_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://www.open-open.com/lib/view/home/1337065481525

 本文由用户 openkk 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1337065481525.html
PHP PHP开发