Re: eval

From: Date: Fri, 01 Aug 2003 06:47:55 +0000
Subject: Re: eval
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157888@lists.php.net to get a copy of this message
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:adrian@planetcoding.net www: http://www.planetcoding.net www: http://www.webskyline.de

« previous php.general (#157888) next »