Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<?php
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/') !== FALSE)
echo 'Internet explorer 11';
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE)
echo 'IE 10 or older';
elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/') !== FALSE)
echo 'Edge';
else
echo 'Something else';
?>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408