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: 149  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
200-550 Test: Zend Certified PHP Engineer — 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');