PHP-Code:
eval('?>'.$string)

Vars:

eval('$string="'.str_replace('"','\\"',$string).'";');

------------------------

> Is it possible to put PHP code in eval ?
> Or just vars ?


> <?php

> $string = 'The result of <?php $a=2; $b=3; $c=$a+$b; echo "$a + $b is $c"; 
?>>';

> eval ($string);

?>>


------------------------
-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to