title: Get parsed PHP file
body: <p>I'm trying to get the contents of a PHP file after it is parsed, and then store it in a variable.
  I couldn't get any useful information via Google, except for this one example:</p>
  
  <pre><code>ob_start();
  include $file;
  $content = ob_get_clean();
  </code></pre>
  
  <p>But this returns the contents as plain text, i.e.: The <code>&lt;?php</code> and <code>?&gt;</code> tags are still there, and all code between the tags isn't parsed.</p>
  
  <p>So I wanted to know, how can I do this properly?</p>
  
  <hr>
  
  <p><strong>update:</strong>
  This is content of the file which is being included:</p>
  
  <pre><code>Testcontent
  
  &lt;?php echo 'This should be parsed, right?'; ?&gt;
  </code></pre>