Re: See if a class is a subclass of other?

From: Date: Fri, 22 Oct 2004 14:19:30 +0000
Subject: Re: See if a class is a subclass of other?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-13466@lists.php.net to get a copy of this message
Francisco M. Marzoa Alonso wrote:
Is there any manner to know if a class is a subclass of another from class name as string? I meant something in the line of is_subclass_of but using the name of the child class instead of an object instance. TIA In such situations I have used get_parent_class() in a loop.
You may write a function for you that provides the behaviour you need and uses get_parent_class(). HTH, Andrey

« previous php.internals (#13466) next »