Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates? $date1 = new DateTime('2014-02-03'); $date2 = new DateTime('2014-03-02');

🎲 Try a Random Question  |  Total Questions in Quiz: 125  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
200-550: Zend Certified PHP Engineer Exam Practice Test 2 — practice the complete quiz, review flashcards, or try a random question.


Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates? $date1 = new DateTime('2014-02-03'); $date2 = new DateTime('2014-03-02');