php验证是否为手机端还是PC
时间:2014-06-13 13:57:46
收藏:0
阅读:196
<?php $forasp = strtolower($_SERVER[‘HTTP_USER_AGENT‘]); if(strpos($forasp,‘mobile‘)==true) { echo "The Client is Mobile!"; }else { echo "The Client is PC!"; } ?>
评论(0)