logo ExpertPHP.in Demo


Demo -Customizing pagination templates in Laravel 5.3 Example

View Post

No Name Details
1 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.
2 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.
3 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
4 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
5 Concept of Encapsulation in PHP Encapsulation is an OOP (Object Oriented Programming) concept in PHP. Wrapping some data in single unit is called Encapsulation. Encapsulation is used to safe data or information in an object from other it means encapsulation is mainly used for protection purpose.In technology era, it is essential to maintain your privacy so for security we are making private method sometime.Private method means it can be accessed withing same class.Concept of Encapsulation in PHP