What is the purpose of destructor ?

Answer Posted / sloog

Because destructors are are called when objects are
destroyed, they can be used for flushing a resource or
logging information on object destruction.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between == and === in php?

623


What is advanced php programming?

632


What is a stored procedure in mysql?

626


Can we override static method?

620


What is xss in php?

652






How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

595


Explain how can we execute a php script using command line?

585


What is mysql_fetch_row?

646


What are the string function in php?

604


How to get the position of the character in a string in php?

702


Do while loops?

604


List some string function name in php?

614


What are the advantages of object-oriented programming in php?

587


What is session in PHP. How to remove data from a session?

593


Do you know what is the use of rand() in php?

612