[PHP] Re: PHP5 and static attributes

2004-05-13 Thread Rudy Metzger
On Thu, 2004-05-13 at 11:41, Gregory wrote: > Rudy Metzger wrote: > > >Although you are correct with your explanations to better use methods > >and private/protected attributes, this is not the core of the problem. > >The problem is that self:: always refers to the current class (A or B or > >C),

[PHP] Re: PHP5 and static attributes

2004-05-12 Thread Aidan Lister
Do you have to access that variable statically? If you're scope is the class: echo $this->myInstance; Otherwise, echo C::$myInstance will access it outside the class (I think), even though it's inherited. "Rudy Metzger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear all, >