Making a variable out of another variables' value in php (php basics)
<p>I need to make a dynamic variable based on a loop, what i am looking for is a variable something like </p>

<blockquote>
  <p>$var = "foo";</p>
  
  <p>$$var = "bar";</p>
  
  <p>echo $foo; // bar</p>
</blockquote>

<p>but for me it should be more like a fixed parameter attached to the dynamic part like </p>

<blockquote>
  <p>$var='123';</p>
  
  <p>$'current_'.$$var=some value; // not correct syntax</p>
  
  <p>echo $current_123 should give 'some value';</p>
</blockquote>
