Determine Browser's Version

倾然丶 夕夏残阳落幕 提交于 2019-11-27 16:30:40

You can get it easily with get_browser()

<?php
$browser = get_browser();
$version = $browser->version;

Your only chance is to grab the User-Agent from the $_SERVER array. And there is no rule that forces a browser to include its version.

A google search for 'php browser version detection' return get_browser() as the first result. Please search before posting.

I have found PPK's JavaScript-based browser detection code to be very reliable.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!