On Wed, 2004-04-07 at 16:44, jdavis 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).

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to