php判断客户端浏览器的类型1、通过$_SERVER['HTTP_USER_AGENT']来写一个php判断浏览器类型的办法。functionmy_get_browser(){if(empty($_SERVER['HTTP_USER_AGENT'])){return'命令行,机器人来了!';}if(false!==strpos($_SERVER['HTTP_USER_AGENT'],'MSIE9.0')){return'InternetExplorer9.0';}if(false...
查看全文