Problem: I need to dynamically call a class and a method of that class. The only thing I get is two strings:
$class = "MyClass";
$method = "myMethod";
How can I create an Instance of the class specified in $class and then call a method on that instance specified in $method?
Like:
$instance = new MyClass;
$instance->myMethod();