[wp-hackers] Using eval within Wordpress for a function mixed with html

andré renaut andre.renaut at gmail.com
Mon Dec 1 23:39:21 GMT 2008


Something like that ? (i am using a function do_eval() using php function
eval()



    function do_eval($string)
    {
        ob_start();
            echo(eval(' ?>' . $string));
            $newstring = ob_get_contents();
        ob_end_clean();
        return $newstring;
    }


More information about the wp-hackers mailing list