Monthly Archives: January 2014

php – check if Internet Explorer

if(preg_match(‘/(?i)msie [1-9]\.0/’,$_SERVER[‘HTTP_USER_AGENT’])) { do/say something } else { do/say something else } Though the above won’t work for IE 11. As $_SERVER[‘HTTP_USER_AGENT’]  returns a string containing the ‘Trident’ substring for IE, we will look for this text to determine if … Continue reading

Posted in Others | Tagged | Leave a comment