ma cosi:

if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') !== false) {
//codice IE8
} else {
//codice NON IE8

}


cioè !== sta per diverso giusto?