How to check whether a variable $date contains a date in the form of 2011-09-20 ? This is to know if the $date contains any letters in it because I want to use the date() and gives me error.
How to check whether a variable $date contains a date in the form of
Share
try this:
demo here: http://codepad.org/3iqrQrey