[Solar-talk] Country list

Paul M Jones pmjones at ciaweb.net
Tue Oct 17 14:28:20 PDT 2006


On Oct 17, 2006, at 4:21 PM, Antti Holvikari wrote:

> I need to store a list of countrys somewhere so that I can access it
> almost from everywhere. It should be in the form of:
>
> array(
>     'FI' => 'Finland',
>     ....
> );
>
> Where do you think I should store it?

Seems like it'd be perfect as Solar/Locale/xx_XX.php array entries.   
I wonder if the code should be prefixed; e.g.,  'COUNTRY_FI' =>  
'Finland' ?


> Ps. Do you know where I could copy&paste a country list?

This seems authoritative:

http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code- 
lists/list-en1.html


--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list