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 4 Question 71 Discussion

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

Which of the following will NOT instantiate a DateTime object with the current timestamp?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

I'm going with Option C. 'now' is such a natural way to express the current time, it's gotta be the right choice.
upvoted 0 times
...
Verona
3 days ago
Ah, the classic 'new DateTime()' is always a safe bet. No need to get fancy, just let PHP do the work for you.
upvoted 0 times
...
Sharan
7 days ago
I was thinking Option B might work, but then I realized it's just using the timestamp as a string. Gotta be careful with those tricks!
upvoted 0 times
...
Cheryl
10 days ago
Option D looks like the right answer. Using `time()` directly doesn't create a DateTime object, it just gives you the current timestamp.
upvoted 0 times
...
Sherell
12 days ago
I believe options A, B, and C are correct because they all provide valid ways to instantiate a DateTime object with the current timestamp.
upvoted 0 times
...
Angelyn
13 days ago
I agree with Quiana. Option D is incorrect because the DateTime constructor expects a string, not an integer like time().
upvoted 0 times
...
Quiana
14 days ago
I think option D will NOT instantiate a DateTime object with the current timestamp.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77