note 95814 deleted from function.call-user-func-array by cmb
| From: | cmb@php.net | Date: | Sun, 30 Aug 2015 18:11:12 +0000 |
| Subject: | note 95814 deleted from function.call-user-func-array by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203515@lists.php.net to get a copy of this message | ||
Note Submitter: kweejee at gmail dot com
----
I recently had
<?php
call_user_func_array('MyClass::myFunction', array(0, 10));
?>
working on my home server, but when I uploaded it to a host with a different version of PHP it
stopped working and gave the error message "call_user_func_array()
[function.call-user-func-array]: Unable to call MyClass::myFunction()" The solution I found was
to use this instead:
<?php
call_user_func_array(array('MyClass', 'myFunction'), array(0, 10));
?>