Since PHP version 5 has been released, it has been improved with Object-Oriented Programming, using classes. It’s one of the most used features in system programming languages like C++ and can now be used in PHP.
In this article I assume you know the following in advance:
– You know what variables are and how to assign values to them in PHP.
– You know what a function is and how it works.
Before I start, I want to tell a bit about functions.