时间:2021-07-01 10:21:17 帮助过:4人阅读
/**
* 检测用户当前浏览器
* @return boolean 是否ie浏览器
*/
function chk_ie_browser() {
$userbrowser = $_SERVER['HTTP_USER_AGENT'];
if ( preg_match( '/MSIE/i', $userbrowser ) ) {
$usingie = true;
} else {
$usingie = false;
}
return $usingie;
}
http://www.bkjia.com/PHPjc/621704.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/621704.htmlTechArticle 代码如下:
/** * 检测用户当前浏览器 * @return boolean 是否ie浏览器 */ function chk_ie_browser() { $userbrowser = $_SERVER['HTTP_USER_AGENT']; if ( pre...