Q. What will be the output?
Code:
class A { public function __call($name, $args) { echo $name; } }
$obj = new A();
$obj->test();
β
Correct Answer: (A)
test
Explanation: __call handles undefined method calls.