title: Execute PHP code in a string
body: <p>I have my page contents saved in a database and would like to execute any php code in the string. So if my string was:</p>
  
  <pre><code>&lt;h1&gt;Welcome&lt;/h1&gt;&lt;?php echo $motto?&gt;&lt;br/&gt;
  </code></pre>
  
  <p>I only want to execute <code>echo $motto</code>. Using eval() will try to execute <code>&lt;h1&gt;Welcome&lt;/h1&gt;</code>.</p>
  
  <p>Any way to do this?</p>