List of countries
Created: Last updated:
If you are looking for a list with all the countries or territories in the world sorted by continent then you will appreciate this page. Especially if you need them in your PHP or Zend Framework project as an array. It will actually work in other frameworks or CMS like WordPress, Joomla or Drupal.
The information and links here have either a download ready list with countries or you can get some information for how to create your own country lists in your project yourself. For developer or designer this might be a more interesting solution or way to get an array with countries in PHP.
First of the easy download version. I created a website where you can select and download your own list with countries/territories and continents or regions in a few different ways (including different languages). You can either copy/paste the lists or download a file in a few different formats. Following is the link to this website
- Countries List Website
The lists with countries and territories in that page are created with the Zend Framework and you can actually use the framework in your project for free. Just see the following.
Create with Zend Framework
If you are a web developer or web designer and looking for some programmatic way to integrate a country list on the fly with PHP into a form you might want to take a look at this.
The Zend Framework has a class named Zend_Locale which allows you to create your own country list. I have written two documents explaining in one how to get the list and the second how to actually sort the list by continents. Unfortunately the Zend_Locale does not have a method to do it all in once.
For how to get the Zend Framework take a look at Zend directly.