Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the significance of destructor in PHP? 
In PHP their is an destructor function which is to be called when an object is deleted.We use destructor function ( _destruct() ).Which does have any parameters.
Example:
public function __destruct() 
{
   print "{$this->Name}
";
}