I read that get_browser () is a relatively slow function, so I was looking for something faster. This code checks for MSIE 7.0, outputting "Okay!". if true. This is basically the same answer as the previous post, only more concise. Simple enough if the statement:
<?php if(strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 7.0')) echo 'Otay!'; ?>
source share