I have 2 variables :
$class : contains the name of the class
$params : contains the parameters to initialize the class like ["key1" => "value1", "key2" => "value2"]
And I want to call a class like the function call_user_func() do with functions
ie :
$classObject = call_class($class, $params);
// Do the same that:
$classObject = new $class("value1", "value2");