OUR BUSINESS is building mobile solutions for YOUR BUSINESS

The internet is going mobile. Give your business the edge - Whether you need to mobile enable your customers, suppliers or staff, we can design and build YOUR SOLUTION... Websites, iPhone and Android.

Country Province/State and City Functions and code

Country Province/State City Functions and Code

We are beginning the release our Country, Province/State and city functions and code. Our goal is to eventually have functions, arrays and code for every programming language, but because we use PHP, Delphi, and Java most of the time in our work, we will be focusing on them.

Below is a PHP function that returns an array of ISO 3166-3 Country Codes and the normal English name of the Country. Please register to see most of the code. Don't worry... it's free, and we won't spam you. Note also that this is a work in progress, and we will add many more functions as time permits.

Note that you can reorder the array below if you don't want Canada and the U.S. to be first. Just put them back into alphabetical order. We use this array with another function to populate Country Select boxes on websites.

Please register or login to post comments