<?php class Foo { public static function bar() { return 42; } } $x = 'Foo::bar'; echo ( true === is_callable($x) ? 'T' : 'F' ); echo ( 42 == call_user_func($x) ? 'T' : 'F' );
You have javascript disabled. You will not be able to edit any code.