Re: Understanding Static Methods
| From: | Curt Zirzow | Date: | Fri, 19 Nov 2004 19:41:48 +0000 |
| Subject: | Re: Understanding Static Methods | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202530@lists.php.net to get a copy of this message | ||
* Thus wrote Jordi Canals:
> On Fri, 19 Nov 2004 03:16:14 +0100, Sylvain Girard <s.girard@pandora.be> wrote:
> >
> > I'm taking a wild guess here, but doesn't that got anything to do with the
> > public declaration of the method?
> >
>
> If I declare the method without the public declaration it bahaves the same ...
>
> static function TestStatic()
> {
> }
>
> Can be called also by using the name of an instanced var:
> $test->TestStatic() continues working.
If no scope is declared.. php uses public by default.
Curt
--
Quoth the Raven, "Nevermore."