Re: Calling a string as a function
| From: | Rolf Brusletto | Date: | Sat, 12 Apr 2003 22:59:11 +0000 |
| Subject: | Re: Calling a string as a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143627@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
The eval() function will do that for you..
Rolf Brusletto
rolf@phpExamples.net
PHP/MySQL Coder
Security Admin
http://www.phpExamples.net
----- Original Message -----
From: "Lasse Laursen" <laursen@netgroup.dk>
To: "PHP List" <php-general@lists.php.net>
Sent: Saturday, April 12, 2003 2:40 PM
Subject: [PHP] Calling a string as a function
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>