[Solar-talk] Country list

Antti Holvikari anttih at gmail.com
Tue Oct 17 14:35:21 PDT 2006


On 10/18/06, Paul M Jones <pmjones at ciaweb.net> wrote:
> 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

But how will I fetch the whole list then? :-)


-- 
Antti Holvikari <http://phphalo.com>


More information about the solar-talk mailing list