Re: how to change old ereg? [message #181957 is a reply to message #181937] |
Fri, 28 June 2013 08:38 |
astrid.kuhr
Messages: 5 Registered: June 2013
Karma:
|
Junior Member |
|
|
Hello!
First all error-messages have gone now.
But now there is one coming back:
Notice: Undefined offset: 6 in /var/www/html/phpweather/phpweather.php on line 446
Notice: Undefined offset: 7 in /var/www/html/phpweather/phpweather.php on line 447
elseif (preg_match('#^(VC)?' . /* Proximity */
'(-|\+)?' . /* Intensity */
'(MI|PR|BC|DR|BL|SH|TS|FZ)?' . /* Descriptor */
'((DZ|RA|SN|SG|IC|PL|GR|GS|UP)+)?' . /* Precipitation */
'(BR|FG|FU|VA|DU|SA|HZ|PY)?' . /* Obscuration */
'(PO|SQ|FC|SS)?$#', /* Other */
$part, $regs)) {
/*
* Current weather-group.
*/
$decoded_metar['weather'][] =
array('proximity' => $regs[1],
'intensity' => $regs[2],
'descriptor' => $regs[3],
'precipitation' => $regs[4],
'obscuration' => $regs[6], /* line 446 */
'other' => $regs[7]);
}
I tried with several delimiters, but the error is there.
How can I get it work?
Regards, Astrid
|
|
|