title: PHP passing parameters while creating new object, call_user_func_array for objects
body: <p>I would like to dynamically create a PHP object, and parameters would be optional.</p>
  
  <p>For example, instead of doing this:</p>
  
  <pre><code>$test = new Obj($param);
  </code></pre>
  
  <p>I would like to do something like this (create new ob is fictional):</p>
  
  <pre><code>$test = create_new_obj('Obj', $param);
  </code></pre>
  
  <p>Is there such function in php? Something similar to call_user_func_array, but for object instead.</p>