<?php class Test { function n($n, $return_method = false) { if ($return_method) return __FUNCTION__; return "N is $n"; } } $test = new Test; $method = $test->n(5, true); print $method . PHP_EOL; print $test->$method(5) . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.