zinor Posted October 29, 2013 Posted October 29, 2013 hello everybody , hello everybody ... i updated my codes due to i upgraded php to version 5 so changed lots of them now just a tiny problem . in this code "if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $datetime)) {" how to update this code segment ??? the error in webpage shown as follow "Deprecated: Function ereg() is deprecated in /includes/functions/english.php on line 19" could anyone help me ? thanks
MrPhil Posted October 29, 2013 Posted October 29, 2013 How to update "ereg" functions has been discussed many times. For this particular one, it's if (preg_match ("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/", $date, $datetime)) {
zinor Posted October 29, 2013 Author Posted October 29, 2013 How to update "ereg" functions has been discussed many times. For this particular one, it's if (preg_match ("/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/", $date, $datetime)) { just can say thank you so much MR.Phill
Recommended Posts
Archived
This topic is now archived and is closed to further replies.