Here is my code:
$method_name = 'mymethod()';
$obj = new Myclass();
$obj->$method_name;
As you see I've used $method_name
as the name of a method. But it throws this error message:
Undefined property: app\classes\Myclass::$mymethod()
How can I fix it?