Re: is Class::$name doable?
| From: | Teodor Cimpoesu | Date: | Mon, 17 Jul 2000 19:48:21 +0000 |
| Subject: | Re: is Class::$name doable? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6967@lists.php.net to get a copy of this message | ||
Hi Jon!
On Mon, 17 Jul 2000, Jon Parise wrote:
> On Mon, Jul 17, 2000 at 07:36:22PM +0300, Teodor Cimpoesu wrote:
>
> > Problem:
> > * I want to call a class method by name
> > - call_user_method() requires an object
> > - call_user_function() doesn't like it
> > - $name ='method'; Class::$name() doesn't work.
>
> call_user_func(array('Class', $name));
>
> I believe that will work, but you'll need a recent version of PHP 4.
not tested, eh? :) nope, doesn't work.
so I guess the answer is `no,file another ignored feature request' [grin]
-- teodor