<?php class A { public function test($a) { return $a instanceof self; } } $a = new A; $b = new A; var_dump($a->test($b), $a->test(new stdClass));
You have javascript disabled. You will not be able to edit any code.