The following content of the php callback function (callback) is from the official php.net documentation.
Callbacks
Call_user_func (), usort (), and other functions use custom callback functions as parameters.
Callback functions can be not only simple functions, but also object methods, including static methods of objects.
Php functions can be called by function names of the string type. any built-in or user-defined functions can be used.
Php language structure, such as: array (), echo, empty (), eval (), exit (), isset (), list (), print, unset ()
The method of the call class is to call the instantiated object and the name of the call method as the 0th and 1st parameters of the array respectively.
You can call a static method of a class without instantiating the class object. Instead, you can call the class name and the static method name as the 0th and 1st parameters of the array respectively.
After php5.2.3, you can also call the static method of this class by using ClassName: methodName.
In addition to these general user-defined functions, anonymous functions can also be used as function parameters.