title: How to evaluate variable content as php code?
body: <p>i want to be able to write some code that would contain html and php and then save it in a variable and print it  where i need it but i dont know to make the php code inside the variable go through the php compiler before beeing send to the browser.</p>
  
  <p>example:</p>
  
  <pre><code>$var='echo "Hello World"';
  
  echo $var;
  </code></pre>
  
  <p>output is <strong>echo "Hello World"</strong>.</p>
  
  <p>but i want the output to be <strong>Hello World</strong>.</p>
  
  <p>Can someone explain me how to do this. thanks.</p>