PHP class constructor & destructor
Posted: Mon Mar 06, 2006 7:34 am
Hello
Its not very clear to me, if we have defined a class, and while in the program which we have written, we declare several object from that class, is there any need for us to call a destructor wheneve our job is done with that object and is no longer needed!
I mean what happens if we dont define any destructor method? will it consume memory?
I would be thankful if someone can explain this to me....
Thanks in advance
Its not very clear to me, if we have defined a class, and while in the program which we have written, we declare several object from that class, is there any need for us to call a destructor wheneve our job is done with that object and is no longer needed!
I mean what happens if we dont define any destructor method? will it consume memory?
I would be thankful if someone can explain this to me....
Thanks in advance