Is there another way to create an object with a classname returned by a method?
<p>I have this method : </p>

<pre><code>public function getInstance()
{
    $classname = $this-&gt;getFullyQualifiedClassName();
    return new $classname();
}
</code></pre>

<p>Is there a way to write this without the <code>$classname</code> variable, which gets used only once?</p>
