Re: T_PAAMAYIM_NEKUDOTAYIM

From: Date: Mon, 16 Dec 2002 19:33:28 +0000
Subject: Re: T_PAAMAYIM_NEKUDOTAYIM
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-92530@lists.php.net to get a copy of this message
On Mon, 16 Dec 2002, Bertrand Mansion wrote: > <sterling@bumblebury.com> wrote : > > > Its neither, its a fact of the language, the following: > > > > $classname::method is illegal, you recieved a parse error to that > > effect. the best thing to do is:: > > I don't understand why it is illegal... It's just not supported by PHP. > > > call_user_func(array($className, 'method'), $param1, $param2); > > This won't work because, in my case, I don't want to make an instance of > $className but rather use $className methods as if they were plugged inside > my main object. This doesn't make an instance at all. Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.dev (#92530) next »