note 99148 added to reflectionclass.getparentclass
| From: | info at yogularm dot de | Date: | Fri, 30 Jul 2010 13:11:54 +0000 |
| Subject: | note 99148 added to reflectionclass.getparentclass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171224@lists.php.net to get a copy of this message | ||
Why don't you just write something like this?
<?php
$reflection = new ReflectionClass('MyClass');
echo $reflection->getParentClass()->getName();
?>
(Testet under PHP 5.3.1)
----
Server IP: 85.214.154.209
Probable Submitter: 93.192.17.36
----
Manual Page -- http://www.php.net/manual/en/reflectionclass.getparentclass.php
Edit -- https://master.php.net/note/edit/99148
Del: integrated -- https://master.php.net/note/delete/99148/integrated
Del: useless -- https://master.php.net/note/delete/99148/useless
Del: bad code -- https://master.php.net/note/delete/99148/bad+code
Del: spam -- https://master.php.net/note/delete/99148/spam
Del: non-english -- https://master.php.net/note/delete/99148/non-english
Del: in docs -- https://master.php.net/note/delete/99148/in+docs
Del: other reasons-- https://master.php.net/note/delete/99148
Reject -- https://master.php.net/note/reject/99148
Search -- https://master.php.net/manage/user-notes.php