New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Zend PHP 5 Certification 200-500 Question # 48 Topic 5 Discussion

Zend PHP 5 Certification 200-500 Question # 48 Topic 5 Discussion

200-500 Exam Topic 5 Question 48 Discussion:
Question #: 48
Topic #: 5

Given the following two functions, what statement is correct?

function dynamicNew($name) {

return new $name;

}

function reflectionNew($name) {

$r = new ReflectionClass($name);

return $r->newInstanceArgs();

}


A.

Both functions do the same


B.

dynamicNew() results in a parse error, reflectionNew() works


Get Premium 200-500 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.