OOP in PHP: Class-function from a variable?
- by Martti Laine
Hello
Is it possible to call functions from class like this:
$class = new class;
$function_name = "do_the_thing";
$req = $class->$function_name();
Something similar solution, this doesn't seem to work?
Martti Laine