$content = file_get_contents("./index_tpl.html"); $content = str_replace("{probando}", "<" . "?php probando(); ?" . ">", $content); echo eval("?" . ">$content");