If I have a hello.php file like this:
Hello, <?php echo $foo; ?>!
I would like to do something like this in some php code:
$text = renderPhpToString('hello.php', array('foo'=>'World'));
and end up with
$text == 'Hello, World!'
Is this possible with standard PHP 5? Obviously I want more complex templates with loops and so forth..