note 68417 deleted from function.call-user-func-array by betz
| From: | betz@php.net | Date: | Sun, 22 Oct 2006 09:34:00 +0000 |
| Subject: | note 68417 deleted from function.call-user-func-array by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118953@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Re: amer at o2 dot pl 's comment:
"If you need to call object method from within the very same object (NOT CLASS!):
call_user_func_array(array(&$this, 'Foo'),args);"
This particular case does not work--giving the following error:
call_user_func_array(): First argumented is expected to be a valid callback, 'Array' was
given
The user functions can only be successfully called (as the documentation for call_user_func alludes
to), with static calls to class functions.