What I am trying to do is making a PHP Conditional specifically for IE9. What I've tried so far are these two PHP Browser Conditionals
if(preg_match('/(?i)msie [9]/',$_SERVER['HTTP_USER_AGENT']))
{
//my code here
exit;
}
if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)
{
//my code here
}
Did I write them incorrectly? Am I missing something?