Index PHPmyEasyWeather PHPmyEasyWeather Homepage

getTafFromWWW

getTafFromWWW -- return TAF information from WWW

Description

Array getTafFromWWW (string $ICAO);

getTafFromWWW returns TAF information for the given station ($ICAO). It works absolutely equivalent to getMetarFromWWW. There are some airports which provide METAR information to be sure but no TAF information, this might occur at smaller airports. In that case you have to look for the next bigger airport in the zone concerned.

getTafFromWWW returns an array with 3 elements and the following indexes:

Use:

<?
include ("phpmyeasyweather.inc.php");
if ($input = getTafFromWWW ("GCRR")) { $TAF = $input["taf"]; $DATE = $input["date"]; $TIME = $input["time"]; } else { echo "no TAF information found!"; }
?>

Previous Up Next