how does 1.PHP pass static classes / methods?
for example:
use XXX\Other;//
class Test{
public static function run(){
$var_a = "test1";
Other::send(function() use($var_a,self::verifyC){
//....
self::verifyC($var_a);
});
}
public static function verifyC($var){
//...
}
}
Test::run();
how do you pass a reference to the self::verifyC method or the self object in code like this?
the current practice is to instantiate a self, and pass it as a variable, for example.
$self = new self ()
;
how to uninstantiate the delivery?