<?php Class Foo { public static function staticMethod() { } public function nonStaticMethod() { } } var_dump(is_callable('Foo::staticMethod')); var_dump(is_callable(['Foo', 'staticMethod'])); // single : is a symfony/drupala concept var_dump(is_callable('Foo:staticMethod')); // non-static methods are not callable by PHP. var_dump(is_callable('Foo:nonStaticMethod'));
You have javascript disabled. You will not be able to edit any code.