Take a look at how vB. does it (functions.php)
PHP Code:
// #############################################################################
/**
* Browser detection system - returns whether or not the visiting browser is the one specified
*
* @param string Browser name (opera, ie, mozilla, firebord, firefox... etc. - see $is array)
* @param float Minimum acceptable version for true result (optional)
*
* @return boolean
*/
function is_browser($browser, $version = 0)