function myFunc($x, $y) {
echo "x : {$x}";
echo "y : {$y}";
}
$params = array("y" => 1, "x" => 2);
Is it possible to call myFunc like using call_user_func_array 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 :
call_func('myFunc', $params);
and the result would be like this
x : 2
y : 1
Thanks.
myFunc($param);and then useextract($param);