Jump to content

When is __destruct() called?


JustinK101

Recommended Posts

I read the php5 doc about class destructors. It simply says this method is called when a class has no more references. I don't follow what that means though? Does it mean when you set $my_class_instance = null? Or does it mean when you call unset($my_class_instance)?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/101513-when-is-__destruct-called/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.