title: Can a class instance self-destruct?
body: <p>Is it possible for a PHP object instance to destroy/unset itself? Say I had a class that represented a file, and then I subsequently delete that file using the class. Can I somehow unset the instance from within one of its own methods?</p>
  
  <pre><code>$file = new FileClass();
  
  $file-&gt;copy('/some/new/path/');
  $file-&gt;delete();
  
  // ... at this point $file would be seen as unset.
  </code></pre>