Re: Re: Calling a string as a function
| From: | Ron Rudman | Date: | Mon, 14 Apr 2003 23:51:54 +0000 |
| Subject: | Re: Re: Calling a string as a function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143849@lists.php.net to get a copy of this message | ||
Outstanding!
"Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message
news:3E9B465B.6060102@buyer-brokerage.com...
> Or even better:
>
> eval( 'return ' . $f . ';' );
>
> And the results of the function call will be the results of eval.
>
>
>
> Ron Rudman wrote:
>
> >If you need the result of the funcation cal:
> >
> >eval( '$foo = ' . $f . ';' );
> >
> >and then reference $foo.
> >
>
> --
> 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.
>
>