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?
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
?>
The call_user_method_array() function is deprecated as of PHP 4.1.0.
Now You can use the call_user_func_array (callable $callback, array $parameters), where $callback or string function name or an array ( $object, $function_name ).
http://php.net/manual/en/function.call-user-func-array.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With