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).
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php