$repl) { $text = str_replace($sub, $repl, $text); } ob_start(); eval("?>".$text); $text = ob_get_contents(); ob_end_clean(); return $text; } ?>