title: Pass arguments from array in php to constructor
body: <p>Normally, if I want to pass arguments from $myarray to $somefunction I can do this in php using </p>
  
  <pre><code>call_user_func_array($somefunction, $myarray);
  </code></pre>
  
  <p>However this does not work when the function one wishes to call is the constructor for an object. For fairly obvious reasons it does not work to do:</p>
  
  <pre><code>$myobj = new call_user_func_array($classname, $myarray);
  </code></pre>
  
  <p>is there something fairly elegant that <em>does work</em> ?</p>