What is Object Oriented Programming in PHP

What is object oriented programming in php - PHP was originally just a collection of simple scripts. In its development, further added various features of object-oriented programming. It started since PHP 4. With the birth of PHP 5, the object-oriented programming features are getting steady and faster. With PHP 5, scripts that use object-oriented concepts will be faster and more efficient.
What is Object Oriented Programming in PHP

Object-oriented programming is a programming approach that uses objects and classes. Currently the concept of object-oriented programming is growing. Almost every university in the world teaches the concept of object-oriented programming to its students. Programming that is widely used in the application of object-oriented programming concepts is Java and C ++.
Object-oriented programming is not just a way of writing different program syntax, but more than that, object-oriented programming is a way of looking at analyzing system and programming problems. In object-oriented programming, every part of the program is an object. An object represents a part of the program that will be completed.
Some basic object-oriented programming concepts, among others:
  1. Encapsulation (Class and Object)
  2. Inheritance, and
  3. Polymorphism
PHP in particular PHP 5 already supports some object-oriented programming concepts. However, PHP 5 does not support the concept of Multiple-inheritancedan polymorphism.
Learn also the following article:
Now you already know, what is object oriented programming in php. Hopefully the above explanation can increase our knowledge. Read the previous article about: How to Make Cookies in PHP.

Comments