note 18508 added to function.eval
| From: | damonp at siliconsys dot com | Date: | Fri, 25 Jan 2002 21:28:05 +0000 |
| Subject: | note 18508 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25818@lists.php.net to get a copy of this message | ||
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);
--
http://www.php.net/manual/en/function.eval.php
http://master.php.net/manage/user-notes.php?action=edit+18508
http://master.php.net/manage/user-notes.php?action=delete+18508
http://master.php.net/manage/user-notes.php?action=reject+18508