<?php class MyClass { public function instanceMethod() { return 'MyClass::instanceMethod called'; } } $methodName = 'instanceMethod'; $obj = new MyClass(); var_dump($obj->$methodName());
You have javascript disabled. You will not be able to edit any code.