<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.2 $ --> <!-- splitted from ./en/functions/classobj.xml, last change in rev 1.4 --> <refentry id="function.get-parent-class"> <refnamediv> <refname>get_parent_class</refname> <refpurpose>Retrieves the parent class name for object or class</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>get_parent_class</methodname> <methodparam><type>mixed</type><parameter>obj</parameter></methodparam> </methodsynopsis> <para> If <parameter>obj</parameter> is an object, returns the name of the parent class of the class of which <parameter>obj</parameter> is an instance. </para> <para> If <parameter>obj</parameter> is a string, returns the name of the parent class of the class with that name. This functionality was added in PHP 4.0.5. </para> <simpara> See also <function>get_class</function> and <function>is_subclass_of</function> </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->