note 18508 deleted from function.eval by didou

From: Date: Fri, 03 Oct 2003 11:44:35 +0000
Subject: note 18508 deleted from function.eval by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57715@lists.php.net to get a copy of this message
Note Submitter: damonp@siliconsys.com ---- If you are trying to evaluate code that calls a function to return a value make sure you call eval with return(). Ex: $format_handler = "return(handler_format_csv(\$field, \$field_enc, \$field_esc));"; $line = eval($format_handler); and not: $format_handler = "handler_format_csv(\$field, \$field_enc, \$field_esc);"; $line = eval($format_handler);

« previous php.notes (#57715) next »