note 90107 deleted from function.eval by danbrown

From: Date: Sun, 17 May 2009 19:50:14 +0000
Subject: note 90107 deleted from function.eval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155276@lists.php.net to get a copy of this message
Note Submitter: O A S ---- javis wrote that to run strings containing html and php code one should use eval("?>" . $code . "<?"); that won't work if $code ends with html. In this case one should write eval("?>" . $code); which works perferct for me.

« previous php.notes (#155276) next »