首页 > 编程 > PHP > 正文

PHP判断手机系统

2019-11-09 14:50:49
字体:
来源:转载
供稿:网友
function mobileSystem(){ if(strpos($_SERVER['HTTP_USER_AGENT'], 'iphone')||strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){ return 'ios'; }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){ return 'aos'; }else{ return 'other'; }}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表