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

andré renaut andre.renaut at gmail.com
Tue Dec 2 00:49:52 GMT 2008


Yes it will ! i am using it like this and it works ...

2008/12/2 andré renaut <andre.renaut at gmail.com>

> 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;
>     }
>



-- 
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.


More information about the wp-hackers mailing list