RE: [PHP] how to trap eval error?

From: Date: Tue, 18 Nov 2003 20:13:57 +0000
Subject: RE: [PHP] how to trap eval error?
Groups: php.general 
Request: Send a blank email to php-general+get-170155@lists.php.net to get a copy of this message
[snip] eval('$return = $function($input);'); [/snip] The problem is the quotes...the string is not truly being eval'd. Change to double quotes eval("$return = $function($input);");

« previous php.general (#170155) next »