<u>复制代码</u> 代码如下: <br>/** <br>* 检测用户当前浏览器 <br>* @return boolean 是否ie浏览器 <br>*/ <br>function chk_ie_browser() { <br>$userbrowser = $_SERVER['HTTP_USER_AGENT']; <br>if ( preg_match( '/MSIE/i', $userbrowser ) ) { <br>$usingie = true; <br>} else { <br>$usingie = false; <br>} <br>return $usingie; <br>} <br>