Zend PHP 5.3 Certification 200-530 Question # 24 Topic 3 Discussion

Zend PHP 5.3 Certification 200-530 Question # 24 Topic 3 Discussion

200-530 Exam Topic 3 Question 24 Discussion:
Question #: 24
Topic #: 3

You want to extract the pieces of a date string, which looks like this:

"2005-11-02". Which of the following pieces of code will properly assign $year,

$month and $day with their respective values?


A.

sscanf("2005-11-02", '%d-%d-%d', $year, $month, $day);


B.

scan("2005-11-02", '%d-%d-%d', $year, $month, $day);


C.

sscanf('%d-%d-%d', "2005-11-02", $year, $month, $day);


D.

sscan($year, $month, $date '%d-%d-%d', "2005-11-02");


Get Premium 200-530 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.