The syntax is: string get_parent_class(object objname); <? class Vehicle { } class Car extends Vehicle { } $car = new Car; $parent = get_parent_class($car); print_r($parent); ?>