Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63483 invoked by uid 1010); 22 Oct 2004 14:21:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63418 invoked from network); 22 Oct 2004 14:21:46 -0000 Received: from unknown (HELO iko.gotobg.net) (80.168.8.116) by pb1.pair.com with SMTP; 22 Oct 2004 14:21:46 -0000 Received: from pd9e61e32.dip.t-dialin.net ([217.230.30.50] helo=[192.168.0.36]) by iko.gotobg.net with esmtpa (Exim 4.43) id 1CL1Cf-0004Nd-9J; Fri, 22 Oct 2004 18:19:41 +0300 Message-ID: <417916F2.5040804@hristov.com> Date: Fri, 22 Oct 2004 16:19:30 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040918 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Francisco M. Marzoa Alonso" CC: internals@lists.php.net References: <417915FE.8060907@gmx.net> In-Reply-To: <417915FE.8060907@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] See if a class is a subclass of other? From: php@hristov.com (Andrey Hristov) 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