The following classes contain three simple PHP arrays using keys, to easily get a countries ISO 3166-1 two digit country code, it's dialing code (i.e. +1, +81,...), or country name.
Feel free to use these classes in your PHP application, or copy the array to use in another language.
NOTE: Accents are currently not included.