- var_dump: documentation ( source)
- is_callable: documentation ( source)
<?php
class A {
static function b() {
return 'soy b static';
}
function a() {
return 'soy a';
}
}
//$z=new a;
//var_dump(is_callable($z::b()));
$b=[new a, 'b'];
var_dump(is_callable($b, false, $ret));
var_dump($ret);