ReflectionClass
PHP Manual

ReflectionClass::isSubclassOf

(PHP 5)

ReflectionClass::isSubclassOfChecks if a subclass

说明

public bool ReflectionClass::isSubclassOf ( string $class )

Checks if the class is a subclass of a specified class.

参数

class

The class name being checked against.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


ReflectionClass
PHP Manual