<?php class A { public static function test($a) { $c = __CLASS__; return $a instanceof $c; } } var_dump(A::test(new A())); var_dump(A::test(new stdClass));
You have javascript disabled. You will not be able to edit any code.