At 22:18 9-2-2003, you wrote:
afaik the answer is no, but please do not rely on my pitiful opinion. I only use my classes with one single object, just to keep the code cleaner.Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++ but I'm having a few problems finding info on this issue.Does PHP support something like static functions in Java?
See one of the articles on objects, in no particular order:
PHP makers on OOP http://www.php.net/oop
Lotsotalk http://www.liquidpulse.net/articles/125
knowledgebase http://www.faqts.com/knowledge_base/view.phtml/aid/7569
ZEND Using objects to create an application 1 http://www.zend.com/zend/tut/tutorial-johnson.php
ZEND An Introduction to Classes http://www.zend.com/zend/tut/class-intro.php
ZEND Overusing OO http://www.zend.com/zend/art/mistake1.php#Heading13
Devarticles http://www.devarticles.com/art/1/241 http://www.devarticles.com/art/1/245
http://www.devarticles.com/art/1/262 http://www.devarticles.com/art/1/285
Devshed Accessing Databases with Class http://www.devshed.com/Server_Side/PHP/Class/
Back to Class http://www.devshed.com/Server_Side/PHP/BackToClass
PHPBuilder Classes and PHP http://www.phpbuilder.com/columns/rod19990601.php3
Vamsi: Object Oriented Programming in PHP http://php.vamsi.net/article/3/1
OOP Talk : A slide presentation http://www.sdphp.net/talks/talks/sdphp_class
for example in Java I can write: public class someClass { public static void someMethod() {}
PHP has no public or private methods import someClass;
afaik you do need to create an object.public class anotherClass { someClass.someMethod() } Is there some way to access methods of a class without creating an object in PHP?
You can override a function with class y extends (class) x, see the articles for examples
Right now I just include the file (not using a class) and then call the function but I would like to have it more seperate.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php