PHP call function with parameter using array
<pre><code>function myFunc($x, $y) {
    echo "x : {$x}";
    echo "y : {$y}";
}
$params = array("y" =&gt; 1, "x" =&gt; 2);
</code></pre>

<p>Is it possible to call <code>myFunc</code> like using <code>call_user_func_array</code> function but the keys of array will automatically set the right parameter in the function? Is there any function to do this or is it possible to create this function? for example :</p>

<pre><code>call_func('myFunc', $params);
</code></pre>

<p>and the result would be like this</p>

<pre><code>x : 2
y : 1
</code></pre>

<p>Thanks.</p>
