title: How to create an instance of an class and call a method on it, in this case?
body: <p>Problem: I need to dynamically call a class and a method of that class. The only thing I get is two strings:</p>
  
  <pre><code>$class = "MyClass";
  $method = "myMethod";
  </code></pre>
  
  <p>How can I create an Instance of the class specified in $class and then call a method on that instance specified in $method?</p>
  
  <p>Like: </p>
  
  <pre><code>$instance = new MyClass;
  $instance-&gt;myMethod();
  </code></pre>