Index PHPmyEasyWeather PHPmyEasyWeather Homepage

getCountries

getCountries -- return an array containing all countries

Description

Array getCountries ();

getCountries returns an array containing all 2-letter indexes and countries (seperated by ";") listed in the icao_db directory.

Example:

<?
include ("phpmyeasyweather.inc.php");
$foo=getCountries(); for ($bar=0;$bar<count($foo);$bar++) { echo $foo[$bar] . "<br>"; }
?>

will return a list looking like this:

AF; Afghanistan
AL; Albania
DZ; Algeria
AO; Angola
...

Previous Up Next