title: PHP: call child constructor from static method in parent
body: <p>I want to have a static method in a parent class that creates instances of whatever subclass i call this method on.</p>
  
  <p>An example to make this more clear:</p>
  
  <pre>
  class parent {
      public static method make_objects($conditions){
          for (...){
              // here i want to create an instance
              // of whatever subclass i am calling make_objects on
              // based on certain $conditions
          }
      }
  }
  
  class sub extends parent{
      ...
  }
  
  $objects = sub::make_objects($some_conditions);
  </pre>