title: Get a variable name from database
body: <p>I'm a little confused - how do I get a variable name stored to a database?!
  Record in the database is a string: <code>"$test"</code></p>
  
  <p>The variable $user is set before the records a fetched from database. So I want to "convert" this string to a real variable to get the value of it.</p>
  
  <p>The following didn't work:</p>
  
  <pre><code>// $test is set to 'bla'
  $test = 'bla';
  // $var is the value from the database
  $var = '$test';
  // print $test
  echo ${$var};
  </code></pre>
  
  <p>I know that it would work if I remove the '$' from the database record</p>
  
  <pre><code>$var = 'test';
  echo $$var;
  </code></pre>
  
  <p>But how to handle this without?</p>