The call_user_method_array function is deprecated what replaces it?

php

Solution

From the manual:

Example #1 `call_user_method_array()` alternative

 <?php
 call_user_func_array(array($obj, $method_name), $params);
 call_user_func_array(array(&$obj, $method_name), $params); // PHP 4
 ?>

Problem

Possible Duplicate: Recommended replacement for deprecated call_user_method? Function in PHP deprecated, what should I use now? The `call_user_method_array` function is deprecated so what should I use to achieve the same outcome?

Original source

Related problems