com web/php: Define the language array, both directions: include/countries_alpha_mapping.inc

From: Date: Fri, 28 Mar 2014 07:23:30 +0000
Subject: com web/php: Define the language array, both directions: include/countries_alpha_mapping.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-18629@lists.php.net to get a copy of this message
Commit: 71620bd09e7e28ce985bef1e9cdeca7fdb9f625e Author: Hannes Magnusson <bjori@mongodb.com> Fri, 28 Mar 2014 00:23:30 -0700 Parents: 52253e9113f5b2f9358c4bdfa4f25d0fcc6c0895 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=71620bd09e7e28ce985bef1e9cdeca7fdb9f625e Log: Define the language array, both directions Changed paths: M include/countries_alpha_mapping.inc Diff: diff --git a/include/countries_alpha_mapping.inc b/include/countries_alpha_mapping.inc index 70e0a1f..a69dccc 100644 --- a/include/countries_alpha_mapping.inc +++ b/include/countries_alpha_mapping.inc @@ -2,7 +2,7 @@ /** * This file has been extracted from http://opengeocode.org/download/countrynames.txt */ -return array( +$COUNTRY_ALPHA_3_TO_2 = array( "AFG" => "AF", "ALA" => "AX", "ALB" => "AL", @@ -251,4 +251,5 @@ return array( "YEM" => "YE", "ZMB" => "ZM", "ZWE" => "ZW", - ); \ No newline at end of file + ); +$COUNTRY_ALPHA_2_TO_3 = array_flip($COUNTRY_ALPHA_3_TO_2);

« previous php.webmaster (#18629) next »