a PHP function to sniff the user agent of the browser and return a nice object with all the information