Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 2 Question 48 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 48
Topic #: 2
[All 200-710 Questions]

Given a DateTime object that is set to the first second of the year 2014, which of the following samples will correctly return a date in the format '2014-01-01 00:00:01'?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Myong
1 days ago
I agree with Vanna. Option C) makes sense because it directly formats the DateTime object in the desired format.
upvoted 0 times
...
Vanna
3 days ago
I think the correct answer is C) $datetime->format('Y-m-d H:i:s'). It seems like the most straightforward option.
upvoted 0 times
...

Save Cancel