i

PHP Tutorial

PHP-OOP Introduction

OOP stands from Object Oriented Programming that allows you an easy and faster execution and from PHP 5 you can write the code in OOP style. It allows you to create objects that can have functions as well as data and provides a clear structure for the programs.

When you want to create a reusable application, OOP makes it possible to develop an application with fewer efforts and time with less code. It also makes your code easy to maintain, debug and update.

Classes and objects are a vital part of Object-Oriented Programming. Class offers a template and object becomes the instance of the class. Let us discuss classes and objects in detail in next section.