- var_dump: documentation ( source)
<?php
class A {
function a() {
$f = static function() {
return static::class;
};
return [static::class, $f()];
}
}
class B extends A {}
$b = new B;
list($method, $closure) = $b->a();
var_dump($method);
var_dump($closure);