¡@

Home 

php Programming Glossary: validatedate

PHP preg_match with working regex

http://stackoverflow.com/questions/12322824/php-preg-match-with-working-regex

preg_match with working regex function validateDate date echo date 2012 08 24 20 30 00 if preg_match ' ^ 0 9 4 0.. this question Why use regex Use DateTime class. function validateDate date format 'Y m d H i s' d DateTime createFromFormat format.. for all kind of date time validations. Examples var_dump validateDate '2012 02 28 12 12 12' # true var_dump validateDate '2012 02..