Index PHPmyEasyWeather PHPmyEasyWeather Homepage

Home
Demo
FAQ
Download
> Documentation
Contact
      

getTafTemp

getTafTemp -- return temperature information out of a TAF code

Description

Array getTafTemp (string $TAF, string $LANGUAGE);

getTafTemp returns temperature information out of a TAF string. The difference between getMetarTemp and getTafTemp is that temperature encoding is quite different in METAR and in TAF codes. TAF doesn´t report a dewpoint, but reports the time when the forecasted temperature will appear.

getTafTemp returns an Array with 2 indexes:

  • "temp" containing the temperature in degrees centigrade
  • "time" containing the time when the forecasted temperature will appear
    Depending on the second parameter $LANGUAGE time will be either e.g. "2:00 PM GMT" (for $LANGUAGE = "EN") or "14:00 GMT" in any other case.
      

Previous Up Next