Index PHPmyEasyWeather PHPmyEasyWeather Homepage

Home
Demo
FAQ
Download
> Documentation
Contact
      

getPressure

getPressure -- return air pressure out of METAR or TAF Code

Description

int getPressure (string $METAR_TAF);

getPressure returns the air pressure measured in hectoPascal (hPa) out of a METAR or TAF code if available. Even if $METAR_TAF contains air pressure in Inches of Mercury (some airport weather stations indicate like this) getPressure will return hPa as it is the common unit for this item. If there is no air pressure contained in $METAR_TAF getPressure will return false.

      

Previous Up Next