title: Is it possible to extend a class dynamically?
body: <p>I have a class which I need to use to extend different classes (up to hundreds) depending on criteria. Is there a way in PHP to extend a class by a dynamic class name?</p>
  
  <p>I assume it would require a method to specify extension with instantiation.</p>
  
  <p>Ideas?</p>