<?php class ParentClass { function id() { var_dump(self instanceof ChildClass); } } class ChildClass extends ParentClass { } $x = new ChildClass; $x->id();
You have javascript disabled. You will not be able to edit any code.