logo ExpertPHP.in Demo


jQuery- making custom right-click context menu example

View Post

Name Details
OOPs Object Oriented Programming in PHP is faster and easier to execute.Object oriented programming (OOP) was first introduced in php4. Only few features of OOP were available in php4. Advance features and major concept of the object oriented programming in PHP is introduced from version 5 which is commonly known as php5.
Class Class : Basic concept of class was introduced from php4 which is the main piller of oop but complete features of class is introduced in php5 such as access modifier or interface. There are almost same basic architecture between php4 and php5 except use of visibility, we will define visibility in php classes in depth It is very easy to define class in PHP. Classes are simply defined by using class keyword in PHP.
Object Classes are nothing without objects. Object is a instance of class. Objects of class can be created by using new keyword Note — PHP OOP allows objects to point out themselves using $this. You can use $this while working within a method but if you are working outside of class then you would use the object name. $object= new myClass(); You can also create multiple object for a class. The process of creating an object is also known as instantiation. Class and object
Concept of Abstraction in PHP Concept of Abstraction in PHP Concept of Abstraction in PHP is important php oop (object oriented programming) concept. To show the needed/relevant information or details without showing all information which is not necessary is called abstraction. Abstraction focus only what the object does instead of how. Concept of Abstraction in PHP