Hi,
This post is not meant to flame OOP'ers.
I'm trying to learn OOP (PHP4), but I'm having a hard time getting why OOP is more reusable than my procedual functions.
I use a "functions.php" file where I have stashed all my functions, connect to db, resize an image... and so on.
How would i write the following code using OOP, and make it more reusable?
|
Go4Expert Founder
|
![]() |
| 4Sep2005,20:37 | #2 |
|
All Database related to one class, image related in other class. mail related in other ... This way you can use some of the existing classes to gain more stability.
|
|
Go4Expert Member
|
|
| 20Sep2005,19:50 | #3 |
|
Thanks
|
|
Light Poster
|
|
| 7Oct2006,14:21 | #4 |
|
Quote:
Originally Posted by shabbir OOP is much easier to understand and also everything is centralised. |

