Re: Re: Calling a string as a function

From: Date: Mon, 14 Apr 2003 23:38:03 +0000
Subject: Re: Re: Calling a string as a function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-143848@lists.php.net to get a copy of this message
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 (#143848) next »