- var_dump: documentation ( source)
- is_callable: documentation ( source)
<?php
class Foo {
public static function fooFunc()
{
return 'hello';
}
}
$callable = array(new Foo, 'fooFunc');
var_dump(is_callable($callable));
var_dump(call_user_func($callable));