Hi!
When replacing with preg_replace e. g.:
$Month_Strings = array('/Jan/','/Feb/','/Mar/','/Apr/','/May/','/Jun/',
'/Jul/','/Aug/','/Sep/','/Oct/','/Nov/','/Dec/');
$Month_Numbers = array('1','2',' 3','4','5','6',
'7','8','9','10 ','11','12');
$month_number = preg_replace($M onth_Strings, $Month_Numbers, $month, 1);
How can I get an error message if nothing was replaced?
Bye,
Thomas
When replacing with preg_replace e. g.:
$Month_Strings = array('/Jan/','/Feb/','/Mar/','/Apr/','/May/','/Jun/',
'/Jul/','/Aug/','/Sep/','/Oct/','/Nov/','/Dec/');
$Month_Numbers = array('1','2',' 3','4','5','6',
'7','8','9','10 ','11','12');
$month_number = preg_replace($M onth_Strings, $Month_Numbers, $month, 1);
How can I get an error message if nothing was replaced?
Bye,
Thomas
Comment