Q. What will be the output?
Code:
class A { public function test() { echo __METHOD__; } }
(new A())->test();
β
Correct Answer: (B)
A::test
Explanation: __METHOD__ returns class::method format.