Q:

Destructing parameter array php

I've been looking but unfortunately not found anything useful.
I have a function 
function myFunc ($param1, $param2){ ...

I need to call that function but I have the parameters in an array
$params = [$param1, $param2]

Is there any way of doing something like ...[] (like in Js) ?
Note: I can not do 
myFunc($params[$param1], $params[$param2]);

A:

Since php5.6 there's a ... syntax:
myFunc(...$params);

And of course, call_user_func_array still exists and works both in php5 and php7:
call_user_func_array('myFunc', $params);

