Skip to content

Instantly share code, notes, and snippets.

@jpcontrerasv
Created March 4, 2015 17:28
Show Gist options
  • Save jpcontrerasv/1c3c7070187693ab3746 to your computer and use it in GitHub Desktop.
Save jpcontrerasv/1c3c7070187693ab3746 to your computer and use it in GitHub Desktop.
User Agent IE11
<?php if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false)) { ?>
<?php } else { ?>
<? } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment