php class and method from array not able to call
<p>I have an array <code>$run</code> that hold <code>$run[0] - class name</code> and <code>$run[1] - class method to run</code> and i want to be able to do this :</p>

<pre><code>// this is working ok
$class = new $run[0]();
// this is error
$class-&gt;$run[1]();
</code></pre>

<p>What is the best and most elegant way of doing this ? </p>

<p>Thanks</p>