<?php
$userAgent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($userAgent,"iPhone") || strpos($userAgent,"iPad") || strpos($userAgent,"iPod")){
echo '苹果';
}else if(strpos($userAgent,"Android") || strpos($userAgent,"Harmony")){
echo '安卓';
}else if(strpos($userAgent,"Windows") || strpos($userAgent,"Windows nt")){
echo 'windows';
} else {
echo '其他';
}
?>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容