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

Write a program to swap two numbers using php.

547


What are php variables?

523


How to write comment in php?

702


How can you associate a variable with a session?

587


Can I use php in html?

567






What is strlen function in php?

526


Which php framework is fastest?

516


What is an example of a variable?

554


How do I escape data before storing it in the database?

578


Is empty check in php?

577


Which framework is best for php?

512


What is in a cookie?

562


Why do we use javascript in php?

536


What is rtrim php?

554


Explain the difference between unlink() and unset()?

545