Home  >  Article  >  Backend Development  >  PHP怎么判断浏览器是否为IE6.0

PHP怎么判断浏览器是否为IE6.0

WBOY
WBOYOriginal
2016-06-13 10:39:23868browse

PHP如何判断浏览器是否为IE6.0

if(strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 6.0') !== false ){    //not ie 6.0}else{    //ie 6.0}


如果去掉6.0的话就只检查是不是IE
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn