Is there a way to detect Chrome browser version using PHP? Basically, I'm looking for a way to detect:
if Chrome version 101 and below
and
if Chrome version 102 and above.
Is there a way to do this?
Right now I have the basics:
function get_browser_name($user_agent){
if (strpos($user_agent, 'Chrome')) return 'Chrome';
return 'Other';
}
if (get_browser_name($_SERVER['HTTP_USER_AGENT']) == "Chrome")
{
echo "something here";
}
else {};