[wp-hackers] Using eval within Wordpress for a function mixed
with html
Otto
otto at ottodestruct.com
Mon Dec 1 22:34:57 GMT 2008
On Mon, Dec 1, 2008 at 3:58 PM, Chris <chris.hearn01 at ntlworld.com> wrote:
> How to use eval() to get the proper result from this type of thing:
> Assuming I read the above fragment from a text file into variable $s
>
> function myfunc($s)
> eval('\$theresult= \$s;')
> return $s;
Shouldn't you be returning $theresult?
-Otto
More information about the wp-hackers
mailing list