<?php class A { const METHOD = 'test'; public function test() { echo 'test'; } public function __call($a, $b) { echo '__call'; } public function start() { $this->{self::METHOD}(); } } $obj = new A(); $obj->start();
You have javascript disabled. You will not be able to edit any code.