<div class="codetitle"> <span><a style="CURSOR: pointer" data="53298" class="copybut" id="copybut53298" onclick="doCopy('code53298')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code53298"> <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> </div>