title: how to execute code found in a string in php
body: <p>heyy,
  I want to run the code found in the string below </p>
  
  <pre><code>$str=" $row["AccountID"].$row["CurrencyID"] "; 
  </code></pre>
  
  <p>like this: </p>
  
  <pre><code>while($row = $result2-&gt;fetch_assoc()) {
       echo $str;
  }
  </code></pre>
  
  <p>but the output is shown like this: </p>
  
  <pre><code> $row["AccountID"].$row["CurrencyID"] 
  </code></pre>
  
  <p>That's not what i need ,
  how can i make it run the code inside the string and allowing it to read the "$row" word as a variable not as a string?</p>