Sudheer Satyanarayana wrote:
It is next to impossible to write all the benefits of using OOP in this
email. You should read books about OOP to learn more about it.
The sample you snippet posted appears to demonstrate how to encapsulate
database access in your models.
And
On Saturday 26 September 2009 06:57 PM, PHPScriptor wrote:
Hello there,
I worked for different companies and saw different ways of programming
websites.
Now everybody is talking about OO programming. But my question is: why?
Let me give you an example one of the ways I saw it done:
a class
Hello there,
I worked for different companies and saw different ways of programming
websites.
Now everybody is talking about OO programming. But my question is: why?
Let me give you an example one of the ways I saw it done:
a class member
Class Member {
protected $_id;