can you render a php file into a variable?
<p>If I have a hello.php file like this:</p>

<pre><code>Hello, &lt;?php echo $foo; ?&gt;!
</code></pre>

<p>I would like to do something like this in some php code:</p>

<pre><code>$text = renderPhpToString('hello.php', array('foo'=&gt;'World'));
</code></pre>

<p>and end up with</p>

<pre><code>$text == 'Hello, World!'
</code></pre>

<p>Is this possible with standard PHP 5? Obviously I want more complex templates with loops and so forth.. </p>
