Using PHP.net as a resource:
mixed get_browser ([ string $user_agent [, bool $return_array = false ]] )
"Attempts to determine the capabilities of the user's browser, by looking up the browser's information in the browscap.ini file."
This outputs something similar to:
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3"
You can use this to send users to different versions of your site depending on the result.
If you need any additional help or clarification, or this answer didn't help, comment and I'll try and help more!
PHP: get_browser - Manual[
^]