I am rather new to OOP programming, but know how beneficial it can be, so I want to start using it. I was thinking about gradually adding Classes to my pages, but I wasn't sure if that works out okay in PHP, or if I need to recreate each page with OOP in mind.
For example. I have a php page with lots of functions. One of the functions makes a database connectino. I want to make a Class that establishes that MySQL db connection. Can I just add that class and use it as an object, and still use all the other functions w\o comprimising performance or reliability? Am I making any sense?
I guess like the posting says. Can I slowly start adding Objects to my pages and end up with something good. Or do I need to Redo everything at once.
Any advice would be appreicated.