Hello, I have a multi-lingual site and was wondering if anyone knew of a PHP function to detetct a browser's preferred laguages. I know I can parse it in the _SEREVR var [HTTP_ACCEPT_LANGUAGE] => fr, fr-ca;q=0.75, en-us;q=0.50, en;q=0.25 But I was just wondering if somewhere PHP already had a function. Something like:
var array get_lang(); where array would be: "fr"=>0.75 "fr-ca"=>0.75 "en-us"=>0.50 "en"=>0.25 Also I'm guessing that q=? is a score of some sort. With highest score being the preferred one? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php