[eluser]rogierb[/eluser]
Hi all,
I think my brain froze since I'm unable to get a decent solution to this problem...
Problem:
Somehow I'm stuck with a very large string which holds PHP code:
Code:
$string = "a lot of text <php if($blah ==$blah$blah) { echo $dosomething} ?> an yet another text"
echo $string // does not work, go figure
How do I execute the code within the string?
I even tried:
Code:
ob_start();
echo $string ;
contents = ob_get_contents();
ob_end_clean();
return $contents;
Even tried putting my head in the oven, still no luck...
So anyone...help...