title: php create class method at runtime
body: <p>I am wondering if there is a way to attach a new method to a class at runtime, in php.
  I mean, not on an instance level but directly to the class, so that all newly created instances, have this new method.
  Can such a thing be done with reflection?</p>
  
  <p>Thanks</p>