标签: php google-chrome
我正在从PHP 5.5进行升级,但这有效,但不确定我现在可以用什么来检测谷歌浏览器浏览器?
function is_chrome() { return(eregi("chrome", $_SERVER['HTTP_USER_AGENT'])); } if(is_chrome()) { $chrome = 'You are using Google Chrome Browser.'; } else{ $chrome = 'hide'; }