<?php class A { public function x() { return 'x'; } } $a = new A(); var_dump( call_user_func([$a, 'x']), call_user_func([$a, 'y']) );
You have javascript disabled. You will not be able to edit any code.