| Index | PHPmyEasyWeather | PHPmyEasyWeather Homepage |
getTafType -- return type of a partial TAF string
Array getTafType (string $TAF);
getTafType will return the type and the general information about the structure of a partial TAF string returned by getTafParts. If you exploded a TAF (what you have to do in any case!) into its partial MAIN / PROB / TEMPO / BECMG (and american notation of FMXXXX) - groups then getTafType will give you the answer what kind the partial TAF code is.
getTafType returns an Array with 3 indexes: "type", "chance" and "init"
PROB50 TEMPO 1015 ... -> "init" will be 3 and "type" -> "tempo" PROB50 BECMG ... -> "init" will be 2 and "type" -> "becmg" PROB50 1010 ... -> "init" will be 2 and "type" -> "prob" TEMPO 1010 ... -> "init" will be 2 and "type" -> "tempo" TEMPO ... -> "init" will be 1 and "type" -> "tempo" PROB50 ... -> "init" will be 1 and "type" -> "prob" GCRR 120808 ... -> "init" will be 0 and "type" -> "main"
| Previous | Up | Next |