转自: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/

最新文章

  1. FlexiGrid 使用 全选、自动绑定
  2. BZOJ4590——[Shoi2015]自动刷题机
  3. tomcat 内存溢出解决办法
  4. uart串口的调试学习
  5. 【枚举+数学】【HDU1271】整数对 难度:五颗星
  6. Android 通过wifi调试程序【转】
  7. Oracle查询错误分析:ORA-01791:不是SELECTed表达式
  8. C#的初步学习,心得
  9. C#多线程编程序--聊聊线程
  10. flask开发过程中的常见问题
  11. Spring Boot笔记一 输出hello
  12. CString中 format、trimLeft和trimright、trim 和FindOneOf用法
  13. Codeforces 580A - Kefa and First Steps
  14. jenkins API
  15. 弄啥嘞?热爱你的Bug
  16. 最短路 dijkstra 优先队列
  17. JNI-获取Java对象的成员变量-GeInttField()
  18. New Concept English Two 19 49
  19. Linux系统下使用ckfinder上传中文名的图片无法正常预览
  20. 2 Docker 镜像基础

热门文章

  1. CSS------li中的宽和高无法修改问题
  2. SQL-修改表名,列名
  3. bugku web题INSERT INTO注入
  4. Activity-Flag标志位
  5. HTML基础单页面总结(基于w3school教程)
  6. 分类器评估方法:精确度-召回率-F度量(precision-recall-F_measures)
  7. Codeforces Round #369 (Div. 2) B. Chris and Magic Square 水题
  8. HDU 5738 Eureka 统计共线的子集个数
  9. spring-boot 速成(10) -【个人邮箱/企业邮箱】发送邮件
  10. redis 写磁盘出错 Can’t save in background: fork: Cannot allocate memory (转)