An object is an
instance of a class. This means that an object is created from the definition of the class and is loaded in memory.

Example:
Code:

name=$value;
}
function get_name()
{
echo $this->name;
}
}
$student1=new student();
$student1->set_name("Rahul");
$student1->get_name();

Example:

Rahul

Explanation:

Here $student1 is an instance of a class.

eXTReMe Tracker