I\'m using ISO 3166-1-alpha 2 codes to pass to an application to retrieve a localised feed e.g. /feeds/us for the USA. I have a switch statement which serves a feed based on
You will want to cross reference these files:
http://www.ethnologue.com/codes/LanguageIndex.tab http://www.ethnologue.com/codes/CountryCodes.tab http://www.ethnologue.com/codes/LanguageCodes.tab
..or get them all in one zip here: http://www.ethnologue.com/codes/Language_Code_Data_20110104.zip
There is no current set PHP function that returns this data that I'm aware of.