Re: "::" meaning and documentation

From: Date: Mon, 26 Jun 2000 16:35:08 +0000
Subject: Re: "::" meaning and documentation
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22365@lists.php.net to get a copy of this message
UW>> That's what I would expect, but why does the snippet work? $this gets UW>> generated on the fly by some magic I don't understand. Whu won't it work? BTW, snippet you provided won't even compile - "do" is a keyword. But why the :: call shouldn't work? UW>> If "::" introduces static calls what's the syntax to access properties UW>> and methods of foo from within do() ? Of course this can't be done using There's no way to do this. Since there's no object of class foo. What your "$this->bar = 3;" line does is to create new object of "stdClass" in $this and make "bar" property of it to be equal 3. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#22365) next »