array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'reflectionclass.getparentclass.php', 1 => 'ReflectionClass::getParentClass', ), 'up' => array ( 0 => 'class.reflectionclass.php', 1 => 'ReflectionClass', ), 'prev' => array ( 0 => 'reflectionclass.getnamespacename.php', 1 => 'ReflectionClass::getNamespaceName', ), 'next' => array ( 0 => 'reflectionclass.getproperties.php', 1 => 'ReflectionClass::getProperties', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/reflection/reflectionclass/getparentclass.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
ReflectionClass::getParentClass — 親クラスを取得する
この関数にはパラメータはありません。
ReflectionClass を返します。
親が存在しない場合は、false
を返します。