variable in variable in php
<pre><code>$var="profile['Gamer']['last_name']";
echo ${$var};
</code></pre>

<p>Gives </p>

<blockquote>
  <p>Undefined variable: profile['Gamer']['last_name']</p>
</blockquote>

<p>. But if i try to echo $profile['Gamer']['last_name'] value exist </p>

<p>I have tried echo $$var that too didn't work</p>
