Hi guys! I’d like to share to you on why use OOP in PHP. Btw, this is my first post here, so I’m really excited! *giggles*
First of all why do we have to use OOP?
We all know that there are two types of programming languages, the Procedural Type, and the Object Oriented. Procedural Types are common in C languages and ASMs, it may also be the first type of PL you may have used. And there is OOP or Object Oriented Programming. Vb is an example of an OOP type.
I don’t want to elaborate those things because I am assuming that you guys already know the difference. If you don’t, you might want to do some Google-ing stuffs.
So back to PHP. We’ve seen PHP as a procedural language. But obviously, it is not. PHP can also do some OOP stuff too.