In case you didn't know, $HTTP_USER_AGENT is a string. Do something like
"browser = explode($HTTP_USER_AGENT); "
Then, to get the browser name, it should be at position 0.
"echo browser[0];"
Hope it helps,
Terrence
PS You will need to enter a delimiter(?) with the explode function as well. Almost forgot...