Re: Re: Calling a string as a function

From: Date: Mon, 14 Apr 2003 23:49:05 +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-143850@lists.php.net to get a copy of this message
Sorry, that should be "the results of eval will be the results of the function call". Leif K-Brooks wrote:
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.

« previous php.general (#143850) next »