| Index | PHPmyEasyWeather | PHPmyEasyWeather Homepage |
getStations -- return an array containing airports for given country
Array getStations (string $countryindex);
getStations returns an array containing all ICAO codes and airports (seperated by ";") listed in the icao_db directory for the given country determined by the 2-letter country index ($countryindex) .
Example:
<?
include ("phpmyeasyweather.inc.php");
if ($foo=getStations("DE") { for ($bar=0;$bar<count($foo);$bar++) { echo $foo[$bar] . "<br>"; } } else { echo "sure that this country really exists?"; }
?>
will return a list looking like this:
ETBA; Aachen Merzbruck EDAC; Altenburg Nobitz ETHA; Altenstadt ...
| Previous | Up | Next |