获取手机信息
function getMobileType(){
SERVER['HTTP_USER_AGENT'];
HTTP_USER_AGENT, tmp = str_replace("Linux; ","",tmp = str_replace("",".",tmp = str_replace(" CPU iPhone OS ","",tmp = str_replace(" like Mac OS X","",tmp = str_replace(" Build","",osarr=explode(";",osarr[0],mobile=explode("Mobile/",mobile=explode(" ",mobiletype="手机:".mobile[0]." 系统:iOS".mobile=explode("/",mobiletype="手机:".mobile[1]." 系统:".osarr[0])=="U"){
arr[0][0]);
tmp);
tmp[0]);
tmp[1]." 系统:".mobiletype;
}
网友评论