note 27712 added to function.eval

From: Date: Mon, 16 Dec 2002 19:15:21 +0000
Subject: note 27712 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-40976@lists.php.net to get a copy of this message
$replacementVar = "\$htmlSnippet->productSnippet()" $command = "$value = $replacementVar; return 1;" eval( $command ) echo $value; if $htmlSnippet->productSnippet() returns a string containing javascript, php will will try to evaluate the javascript code instead of just assigning the string to $value. -- http://www.php.net/manual/en/function.eval.php http://master.php.net/manage/user-notes.php?action=edit+27712 http://master.php.net/manage/user-notes.php?action=delete+27712 http://master.php.net/manage/user-notes.php?action=reject+27712

« previous php.notes (#40976) next »