<?php class Test { public function testA() { echo 'A'; } public function callIt($method) { $this->{$method}(); } } $t = new Test(); var_dump($t->callIt('testA')); die;
You have javascript disabled. You will not be able to edit any code.