Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
how to delete a php object from its class using -'php,oop'
how to delete a php object from its class ¬†using -'php,oop'
I know that for some that might sound stupid, but I was thinking if I hava a delete() method in a class that removes all the object data (from DB and file system), how can I destroy/remove the object from within the class.
This is a PHP question. Something like unset($this); Is it possible and wise? And what is the right way to do it?
Sep 7, 2015
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please