Re: Understanding Static Methods

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Thus wrote Jordi Canals:
> On Fri, 19 Nov 2004 03:16:14 +0100, Sylvain Girard <s.girard@xxxxxxxxxx> 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."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux