What is the correct way to detect Internet Explorer in PHP, any version, including IE 11?
Tried:
f(!(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))){
The above does not work for me.