note 107231 added to reflectionclass.getmethods
| From: | sjon at hortensius dot net | Date: | Mon, 23 Jan 2012 13:08:38 +0000 |
| Subject: | note 107231 added to reflectionclass.getmethods | ||
| Groups: | php.notes php.notes | ||
| Request: | Send a blank email to php-notes+get-185713@lists.php.net to get a copy of this message | ||
This method will return the methods in the order they are defined, followed by any parent methods in
their defined order:
class x
{
function a(){}
function b(){}
function c(){}
}
class y extends x
{
function b(){}
function a(){}
function d(){}
}
$r = new ReflectionClass('y');
print_r($r->getMethods());
returns:
y::b
y::a
y::d
x::c
----
Server IP: 83.137.20.135
Probable Submitter: 2001:888:1dd1:0:21e:c2ff:fe02:ffe5
----
Manual Page -- http://www.php.net/manual/en/reflectionclass.getmethods.php
Edit -- https://master.php.net/note/edit/107231
Del: integrated -- https://master.php.net/note/delete/107231/integrated
Del: useless -- https://master.php.net/note/delete/107231/useless
Del: bad code -- https://master.php.net/note/delete/107231/bad+code
Del: spam -- https://master.php.net/note/delete/107231/spam
Del: non-english -- https://master.php.net/note/delete/107231/non-english
Del: in docs -- https://master.php.net/note/delete/107231/in+docs
Del: other reasons-- https://master.php.net/note/delete/107231
Reject -- https://master.php.net/note/reject/107231
Search -- https://master.php.net/manage/user-notes.php