title: How to undeclare an already declared class?
body: <p>Suppose a PHP script uses methods of <strong>class A</strong> and then <strong>regenerates new source code</strong> of class A.</p>
  
  <p>If class A is already declared, does PHP provide a method to <strong>undeclare class A</strong> so that I may <strong>re-require the newly created source</strong> of class A?</p>
  
  <p>By 'already declared' I mean, that the source of a class has been parsed, thus the class name is defined and bound to the class definition.</p>
  
  <p><strong>Update 2014-02-22</strong></p>
  
  <p><a href="http://docs.php.net/runkit" rel="noreferrer">RunKit</a> does provide the <a href="http://docs.php.net/manual/en/function.runkit-constant-remove.php" rel="noreferrer">runkit_constant_remove</a>. Without using RunKit, there <strong>doesn't seem to be a method to undeclared / undefine a class</strong>.</p>