首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > php-mobile-detect2

php-mobile-detect2

  • 资源大小:2.91 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php Mobile detect Device

资 源 简 介

This project has been started because, the developer of "php-mobile-detect" does not fix or support his version Description Mobile Detect 2 is a simple PHP class for easy detection of the most popular mobile devices platforms: * Android * Blackberry * iPhone * iPad * Opera Mini * Palm * Windows Mobile * as well as generic ones. Usage Include and instantiate the class: include("Mobile_Detect.php");$detect = new Mobile_Detect(); Check for a specific platform: if ($detect->isAndroid()) { // code to run for the Google Android platform} Available methods are isAndroid(), isBlackberry(), isOpera(), isPalm(), isWindows(), isGeneric(). Alternatively, if you are only interested in checking to see if the user is using a mobile device, without caring for specific platform: if ($detect->isMobile()) { // any mobile platform} Personal blog: http://sjevsejev.blogs

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.187646s