Skip to content

Instantly share code, notes, and snippets.

@sn
Created November 3, 2011 12:24
Show Gist options
  • Save sn/1336372 to your computer and use it in GitHub Desktop.
Save sn/1336372 to your computer and use it in GitHub Desktop.
Detecting Internet Explorer with PHP
<?php
$is_ie = (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === false)? FALSE : TRUE;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment