Which of the following will return true keeping in view the following code? function validateDate($date, $format = 'Y-m-d H:i:s') { $d = DateTime::createFromFormat($format, $date); return $d && $d->format($format) == $date; }
Correct Answer: validateDate('2012-02-28 12:12:12')
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP MCQ Questions