- var_dump: documentation ( source)
- error_reporting: documentation ( source)
- is_callable: documentation ( source)
<?php
class Foo
{
public function bar()
{
}
}
function gimme_a_callable(callable $callable)
{
}
error_reporting(-1);
var_dump(is_callable([Foo::class, 'bar']));
gimme_a_callable([Foo::class, 'bar']);