PHP判断用户操作系统
网上看到的,摘录下来. <?php $agent = $_SERVER[‘HTTP_USER_AGENT’]; $os = false; if(preg_match(‘/win/i’, $agent) && preg_match(‘/nt 10.0/i’, $agent)){ $os = ‘Windows 10’; }else if (preg_match(‘/win/i’,
阅读更多 »
网上看到的,摘录下来. <?php $agent = $_SERVER[‘HTTP_USER_AGENT’]; $os = false; if(preg_match(‘/win/i’, $agent) && preg_match(‘/nt 10.0/i’, $agent)){ $os = ‘Windows 10’; }else if (preg_match(‘/win/i’,
阅读更多 »