Re: PHP OO concepts

From: Date: Wed, 07 Apr 2004 21:21:12 +0000
Subject: Re: PHP OO concepts
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-182713@lists.php.net to get a copy of this message
You will find some usefull ressources over at http://www.phppatterns.com/ -- red Robert Cummings wrote: [...]
Hello, I have am checking out PHP OOP and it's pretty smooth. I have a decent amount of Java experience so PHP OOP is really easy to pick up. However I have a few questions I was hoping someone could help me with. Can php have a main()? If not ... how to you start a program that is purley PHP OOP or is this even possible? How popular is PHP OOP? Should I use PHP OOP for small dynamic web pages? Is this the convention? [...]
[...]
There is no main() for PHP. The concept of main is implied at the beginning of you source file. PHP OOP is fairly popular amongst those familiar with it's benefits and techniques; however, many developers use it when they feel it is the best solution for the task at hand. And so it is not uncommon to see both procedural style code and OOP code intermingled. This is fairly accepted in the PHP community. For examples of OOP code you could check out the PEAR web site...
    http://pear.php.net/
Or my own website:
    http://www.interjinn.com
Or even PHP Classes
    http://www.phpclasses.org/
And a multitude of other sites which you can probably find by doing a search for OOP and PHP in google (or your favourite search engine). [...]


« previous php.general (#182713) next »