- var_dump: documentation ( source)
- is_callable: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
class Foo
{
static function bar()
{
}
}
$klass = 'Foo';
$method = 'bar';
var_dump(is_callable($klass::$method()));