Q. What will be the output?

Code:
class A { public function __call($name, $args) { echo $name; } }
$obj = new A();
$obj->test();
  • (A) test
  • (B) Error
  • (C) NULL
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) test
Explanation: __call handles undefined method calls.
Explanation by: Roshan
__call handles undefined method calls.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
28
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
90%
Success Rate