note 112212 added to class.reflectionclass
| From: | Anonymous | Date: | Fri, 17 May 2013 06:45:32 +0000 |
| Subject: | note 112212 added to class.reflectionclass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194835@lists.php.net to get a copy of this message | ||
Reflecting an alias will give you a reflection of the resolved class.
<?php
class X {
}
class_alias('X','Y');
class_alias('Y','Z');
$z = new ReflectionClass('Z');
echo $z->getName(); // X
?>
----
Server IP: 192.41.42.26
Probable Submitter: 67.182.168.147
----
Manual Page -- http://php.net/manual/en/class.reflectionclass.php
Edit -- https://master.php.net/note/edit/112212
Del: integrated -- https://master.php.net/note/delete/112212/integrated
Del: useless -- https://master.php.net/note/delete/112212/useless
Del: bad code -- https://master.php.net/note/delete/112212/bad+code
Del: spam -- https://master.php.net/note/delete/112212/spam
Del: non-english -- https://master.php.net/note/delete/112212/non-english
Del: in docs -- https://master.php.net/note/delete/112212/in+docs
Del: other reasons-- https://master.php.net/note/delete/112212
Reject -- https://master.php.net/note/reject/112212
Search -- https://master.php.net/manage/user-notes.php