- var_dump: documentation ( source)
- is_callable: documentation ( source)
<?php
class C {
static function method() {
return function() {
return __FUNCTION__;
};
}
}
$f = function () {
return __FUNCTION__;
};
$cc = C::method();
$fc = $f();
var_dump($cc, is_callable($cc));
var_dump($fc, is_callable($fc));