note 822 deleted from function.eval by jimw

From: Date: Sat, 08 Dec 2001 23:13:09 +0000
Subject: note 822 deleted from function.eval by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22309@lists.php.net to get a copy of this message
To include HTML in the string passed to eval, precede it with a PHP closing tag. Once you have finished your HTML block, insert a PHP opening tag. eg. <PRE> $str = "?><H1><I>Hello, World!</I></H1>&lt;?" eval( $str ); </PRE> It will produce: <PRE> <H1><I>Hello, World!</I></H1> </PRE>

« previous php.notes (#22309) next »