title: Can I __destruct() a library object in CodeIgniter 2.1?
body: <p>I am using the CodeIgniter 2.1 PHP framework. I have a library file that manipulates a User object. The object refers to a specific user record in my database. I want to be able to delete this record and destroy the object so that it cannot be erroneously accessed after it's destruction. Normally, one would employ the <code>__destruct()</code> function but upon my initial investigation I am not sure if I can use this function in a CI library object. Is this possible? Are there reasons why I shouldn't use the <code>__destruct()</code> function?</p>