Overloading in PHP

October 1, 2013
We are going to see a surprise in this PHP tutorial. We all know about overloading and it is a basic concept in OOPS and we have beaten it enough in our colleges. We have operator overloading, function overloading etc. When different operations are performed using the same operator, then it is called operator overloading. […]
This tutorial was added to PHP.

PHP Magic Methods

September 20, 2013
Generally, for each PHP user defined function, it contains two portions, such as function definition and function call. In some special cases, PHP functions will have function declaration. For example, PHP interfaces functions or PHP abstract functions, that we have seen with abstract access modifiers. In PHP, we can define some special functions that will […]
This tutorial was added to PHP.

PHP Access Modifiers

September 18, 2013
PHP access modifiers are used to set access rights with PHP classes and their members that are the functions and variables defined within the class scope. In PHP, there are some keywords representing these access modifiers. These keywords will be added with PHP classes and its members. PHP keywords as Access Control Modifiers Now, let […]
This tutorial was added to PHP.

PHP Constructors Destructors

September 4, 2013
While working with PHP object model, we need to set properties of that object, before using it as a reference to access class member functions. For such initial settings, object oriented concepts are there, that are commonly used in many object-oriented languages. Constructors and destructors are such object-oriented concepts supported by PHP. Constructors are used […]
This tutorial was added to PHP.

PHP self Vs this

August 28, 2013
In PHP, the self and this keyword are used to refer class members within the scope of a class. The class members can be either variables or functions. These PHP keywords differ with the static behavior of the class members. PHP this keyword refers a non-static member of a class with respect to the class […]
This tutorial was added to PHP.

Use of PHP final

July 3, 2013
As like as other programming languages, like, Java, the final keyword is added into PHP as of its version 5. This keyword is used as a modifier, but only applicable for PHP classes and functions. If the final modifier is applied to PHP classes, then, the class cannot be inherited by some other class. At […]
This tutorial was added to PHP.

PHP Interfaces

June 28, 2013
In PHP, the interface blocks which declares set of functions to be defined with a class to implement this interface. A class can extend more than one interface, thereby, we can simulate multiple inheritances in PHP. Let us see all about it, in detail with this article. PHP class implements Interface While implementing an interface […]
This tutorial was added to PHP.

PHP Inheritance

June 18, 2013
Inheritance is one of the popularly used Object Oriented Programming features. It allows having shared properties and functions between related classes. This feature allows us to interrelate classes, to abstract data and methods and increase reusability. One of the noticeable change while migrating from PHP version 4 to PHP version 5 is of introducing Object-oriented […]
This tutorial was added to PHP.

OOPS Features Supported by PHP

April 24, 2013
PHP supports both procedural and Object Oriented programming. Object Oriented methodologies will be useful and effective while working with complex or huge size projects. It helps to compartmentalize the project based domains and programming layers to make it easy to handle. In this tutorial, we are going to see some of the important OOPS features supported […]
This tutorial was added to PHP.

PHP Object Cloning

April 11, 2013
Object cloning is creating a copy of an object. An object copy is created by using the clone keyword and the __clone() method cannot be called directly. In PHP, cloning an object is doing a shallow copy and not a deep copy. Meaning, the contained objects of the copied objects are not copied. If you wish […]
This tutorial was added to PHP.

↑ Back to Top