title: OOP in PHP: Class-function from a variable?
body: <p>Is it possible to call functions from class like this:</p>
  
  <pre><code>$class = new class;
  $function_name = "do_the_thing";
  $req = $class-&gt;$function_name();
  </code></pre>
  
  <p>Something similar solution, this doesn't seem to work?</p>