Given the following two functions, what statement is correct?
<code>
function dynamicNew($name) {
return new $name;
}
function reflectionNew($name) {
$r = new ReflectionClass($name);
return $r->newInstanceArgs();
}
</code>

A.
Both functions do the same
B.
dynamicNew() results in a parse error, reflectionNew() works
I have the same idea. B
0
0
Both functions works and do the same.
You can check it yourself in php.
Correct answer is A!
0
0