Recent Tutorial

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 […]
This tutorial was added to PHP.

PHP self Vs this

August 28, 2013
In PHP, the self and this keywords are used to refer class members within the scope of a class. The class members can be of either variables or functions. These PHP keywords differs with the static behavior of the class members. PHP this keyword refers 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 it’s 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, interface is block which declares set of functions to be defined with a class to implement this interface. A class can extend more than one interface, there by, we can simulate  multiple inheritance in PHP. Let us see all about it, in detail with this article. PHP class implements Interface While implementing an […]
This tutorial was added to PHP.

PHP Inheritance

June 18, 2013
Inheritance is one of the popularly used Object Oriented Programming feature to have shared properties and functions between related classes. This feature provides following functionalities, such as, Inter relating classes. Providing functionalities in abstract manner. Increasing reusability. One of the noticeable change while migrating from PHP version 4 to PHP version 5 is of introducing […]
This tutorial was added to PHP.

OOPS Features Supported by PHP

April 24, 2013
In PHP, it supports object oriented features which lead further popularity to this language. PHP language focus on the following OOPS features. Class Object Encapsulation Inheritance After discussing these features, we can gain knowledge about how to retrieve required data from the object data structure that is defined by the class. Class Like other object […]
This tutorial was added to PHP.

PHP Object Cloning

April 11, 2013
Object cloning is nothing but creating copy of an object. Object model is one of the popular feature in PHP 5. In this model, an object is passed by reference to create a copy of it where in PHP 4 it was passed by value. download Pass by Value In this code we are copying […]
This tutorial was added to PHP.

↑ Back to Top