Re: classes and objects: php5. The Basics
| From: | Martin Alterisio | Date: | Tue, 16 Jan 2007 14:46:22 +0000 |
| Subject: | Re: classes and objects: php5. The Basics | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247148@lists.php.net to get a copy of this message | ||
Backward compatibility with PHP4, where member functions couldn't be
declared as static. Any member function could be called statically providing
a static context instead of an object instance.
2007/1/16, Cheseldine, D. L. <d.l.cheseldine@abdn.ac.uk>:
Hi I'm stuck on The Basics page of the php5 Object Model: 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? regards dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php