Re: [PHP] Inheritance and a class function: on what class was itcalled?

2002-10-02 Thread Rasmus Lerdorf
The mistake is mine not yours. I know about the :: operator I use it all the time (but within classes parent::function() etc) - but I never realised until now that PHP will let you use any class before instantiation (and nearly all my PHP work uses classes). I have never even attempted to try

Re: [PHP] Inheritance and a class function: on what class was itcalled?

2002-10-02 Thread Rasmus Lerdorf
Since static method calls are completely disconnected from any class instance asking which class the method call is from is rather meaningless, and no, I don't think there is any way to get that. -Rasmus On Wed, 2 Oct 2002, Nick Eby wrote: PHP allows static method calls... But back to my