core_useragent::is_firefox()
that is worth 5 lines of my earlier code.
$browser = $_SERVER['HTTP_USER_AGENT'];
$chrome = '/Chrome/';
$firefox = '/Firefox/';
$ie = '/MSIE/';
if (preg_match($firefox, $browser))
if (core_useragent::is_firefox())
{
...
}
You're the best!