Eval()??? A variables contents?

From: Date: Fri, 09 Nov 2001 19:51:18 +0000
Subject: Eval()??? A variables contents?
Groups: php.general 
Request: Send a blank email to php-general+get-74047@lists.php.net to get a copy of this message
PHP Gurus: I have one for you. I'm sure there is a simple solution, but I'm having difficulty finding it. Let's say I have: $content = "<?PHP Query_Database( $category );?>"; If I use <?PHP echo $content; ?>, it doesn't evaluate that content. What am I doing wrong here? Is there an equivalent to JavaScript's eval($commands) function? TIA, Christopher Raymond

« previous php.general (#74047) next »