What is the purpose of destructor ?
Answers were Sorted based on User's Feedback
Answer / sunil kumar
A destructor is used to destroy the objects that have been
created earlier.Destructor is a member function whose name
is the same as the class name but is preceded by tilde sign.
It never takes any argument nor it returns any value.It`ll
be invoked implicitly by the compiler upon exit from the
program to clean up storage that is no longer accessible.
| Is This Answer Correct ? | 1 Yes | 3 No |
Define urlencode() and urldecode() used in php?
How do you remove whitespace from the beginning and end of a $string variable?
What is the difference between unlink and unset ?
Do csrf tokens expire?
What is the use of imagetypes() method?
What is php addslashes?
Tell me what sized websites have you worked on in the past?
What is the default time in seconds for which session data is considered valid?
Tell me what is the default session time in php?
Want to know the 10th max salary in salary table
How to make multilanguage site in php? (like english,tamil)
What is MVC structure in Magento?