Re: Calling a string as a function
| From: | Leif K-Brooks | Date: | Sat, 12 Apr 2003 21:55:55 +0000 |
| Subject: | Re: Calling a string as a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143626@lists.php.net to get a copy of this message | ||
www.php.net/eval
Lasse Laursen wrote:
Hi all, I hope that someone can answer this: I have some stings stored in a database, eg: "my_function($some_var, $some_other_var)" "another_function($a, $b, $c)" etc. - depending on various things I would like to call one of the variables. I have pulled the string out from the database and stored it in a $function variable. How can I call the sting as a function? Regards -- Lasse Laursen <laursen@netgroup.dk> - Systems Developer NetGroup A/S, St. Kongensgade 40H, DK-1264 København K, Denmark Phone: +45 3370 1526 - Fax: +45 3313 0066 - Web: www.netgroup.dk - Don't be fooled by cheap finnish imitations ; BSD is the One True Code-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.