Consider the following situation:
call_user_func_array(array($this, 'method'), array());
This works fine, but I'm wondering whether this is the right way to pass zero parameters to the method. I've tried passing null
instead of array()
, but that gives me an error.
Question: what is the right way to pass zero arguments to the method called by call_user_func_array
?