2014年1月23日

php 判断是否是手机浏览器访问

摘要: /** * 判断是否是通过手机访问 * @return bool 是否是移动设备 */function isMobile() { if(isset($_SERVER['HTTP_USER_AGENT'])) { $userAgent = strtolower($_SERVER['HTTP_USER_AGENT']); $clientkeywords = array( 'nokia', 'sony', 'ericsson', 'mot', 'samsung', 'htc' 阅读全文

posted @ 2014-01-23 22:28 怕淹死的鱼 阅读(378) 评论(0) 推荐(0) 编辑

导航