Purpose of complex (curly) syntax outside a string representation
<p>I understand the usage of complex (curly) syntax within a string, but I don't understand it's purpose outside of a string.</p>

<p>I just found this code in CakePHP that I cannot understand:</p>

<pre><code>// $class is a string containg a class name
${$class} =&amp; new $class($settings);
</code></pre>

<p>If somebody could help me understand why is used here, and what is the difference between this and:</p>

<pre><code>$class =&amp; new $class($settings);
</code></pre>

<p>Thank you.</p>
