下载地址http://code.google.com/p/php-mobile-detect/
程序就是一个文件,下载之后直接引用就可以,基于mit license协议开源的php程序
使用方法:
复制代码 代码如下:
<?php
include("mobile_detect.php");
$detect = new mobile_detect();
if ($detect->ismobile()) {
// any mobile platform
echo 'ismobile';
}
else{
echo 'ispc';
}
?>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!