Is there any way to force a string to evaluate (as a double quoted string/heredoc would)?
For example is there some clean way of doing this:
<?php
$mystring = <<<'MS'
hello {$adjectives['first']} world
MS;
$adjectives = array('first'=>'beautiful');
// here I want to print 'hello beautiful world'
// instead of 'hello {$adjectives['first']} world'
echo evaluate($mystring); // evaluate is not a real function
?>
$mySytringafter$adjectiveshas been defined?sprintf?