RE: [PHP] classes and objects: php5. The Basics
| From: | Jay Blanchard | Date: | Tue, 16 Jan 2007 14:39:08 +0000 |
| Subject: | RE: [PHP] classes and objects: php5. The Basics | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-247147@lists.php.net to get a copy of this message | ||
[snip]
http://uk.php.net/manual/en/language.oop5.basic.php
The top example has the code:
A::foo();
even though foo is not declared static in its class. How does it get
called statically without being declared static?
[/snip]
foo() is a function and would not be static, it can be public (default
without explicit declaration in PHP5), protected and private.