| Index | PHPmyEasyWeather | PHPmyEasyWeather Homepage |
getMetarType -- return type of a partial METAR string
Array getMetarType (string $METAR);
getMetarType is the equivalent function to getTafType for the use with METAR strings. After cogently exploding the METAR string into his partial MAIN / TEMPO / BECMG or NOSIG - groups getMetarType will give you the answer of what kind the partial METAR code is.
getMETARType also returns an Array with 3 indexes: "type", "chance" and "init". "chance" and "init" only are returned because of compatibility reasons to getTafType, they always will be 100 and 1 (for chance and init). The only important returner is the index "type", it will return you either "tempo", "becmg" or "nosig".
| Previous | Up | Next |