* Thus wrote Julio Sergio Santana:
>
> class a {
> var $fname;
> function a() {
> $this->fname = 'foo'; // the name of the function
> }
>
> function execute() { // method to execute the named function
> $this->fname();
> // I also tried here
> // {$this->fname}();
> // ${this->fname}();
> // "$this->fname"();
$this->{$this->fname}();
or (what it actually is doing.. )
$func = $this->fname;
$this->$func();
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php