
When developing a website or app you may find the need for codes to store a users country in a database or use in a form.
The ISO has a standard list of country codes (ISO 3166). These are available in formats called alpha-2 and alpha-3.
To prevent myself needing to generate these again I provide these as a list attached to this post. They're available below in both CSV format and as a PHP array for your use. Please feel free to download.