Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Detect IE 11 or below
if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false)) {
//is IE 11 or below
}
@neenjaw

This comment has been minimized.

Copy link

commented Jun 23, 2018

Nice snippet, thanks!

@theproj3ct

This comment has been minimized.

Copy link

commented Feb 21, 2019

Works thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.