Answer the question
In order to leave comments, you need to log in
How to use constructs like (array($class, 'method'), array(..) in function parameters?
I began to often see that the following constructions are passed as function parameters:
myFunc(array($class,'_method'), array($class, 'two_method), ... );
Answer the question
In order to leave comments, you need to log in
looks like a callback
I think this information will be useful to you: call_user_func
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question