PHP识别设备

PHP识别设备

<?php//获取USER AGENT$agent = strtolower($_SERVER['HTTP_USER_AGENT']);print_r($agent);//分析数据$is_pc = (strpos($agent, 'windows nt')) ? true : false;  $is_iphone = (strpos($agent, 'iphone')... 阅读详情