πŸ“Š PHP
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

πŸ‘οΈ
2
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
92%
Success Rate