Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: PHP 浏览器检测和重定向
我只需要浏览器名称(IE、Chrome、firefox 等),没有别的(所以用户代理不起作用)。执行此操作的 PhP 代码是什么?
使用 get_browser。
http://php.net/manual/en/function.get-browser.php