php判断设备是安卓还是ios

php
public function testagent(){
       if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')||strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){
           echo 'systerm is IOS';
       }else if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
           echo 'systerm is Android';
       }else{
           echo 'systerm is other';
       }
   }

 

如果发现下载不了或者地址失效,请联系客服QQ: 2323178881
找资料 » php判断设备是安卓还是ios

提供最优质的资源集合

立即查看 了解详情