Instantiating a class with an array as parameters
<p>I'm aware of the existence of call_user_func_array, but I don't believe you can use this to construct a class (if you can, how do you do it?). As long as I'm not mistaken, how do you instantiate a class with an array as parameters?</p>

<p>for example:</p>

<pre><code>class Test {
    public function __construct($var1, $var2) {
        // do something
    }
}
</code></pre>

<p>how would I instantiate it with this:
    array("var1_data", "var2_data")</p>
