MBR wrote:
So, my question is not how do people do object oriented programming in
PHP, but rather why? Under what circumstances does it really provide
any benefit?
For me, the reason to use OO in PHP is the same as in any other language: OO
makes things better organized and easier to maintain.
There is to inherent advantage in using OO above procedural or other types
of programming except that it gives a better organization of your code,
making it much easier to reuse, maintain and publish.
Why do you use OO in Java? (Note: one can easily write a completely
procedural program in Java).
Berislav
--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.