Parse .php and return as variable
<p>So say I have a file page.php</p>

<pre><code>&lt;html&gt;
Hello &lt;?php echo $world;?&gt;
&lt;/html&gt;
</code></pre>

<p>I want to create a variable and assign it 'Hello world' using page.html</p>

<p>Something like</p>

<pre><code>$world = 'world';
$mypage = parse_file('page.php');
</code></pre>

<p>I suppose I could wrap the entire file in doublequotes as such </p>

<pre><code>$mypage="&lt;html&gt;
Hello $world
&lt;/html&gt;";
</code></pre>

<p>but doublequote parsing is inefficient. Is there any easy of doing this without having to write a script that parses page.html?</p>
