note 97840 added to reflectionclass.getmethods
| From: | calibhaan at gmail dot com | Date: | Tue, 11 May 2010 16:57:46 +0000 |
| Subject: | note 97840 added to reflectionclass.getmethods | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169148@lists.php.net to get a copy of this message | ||
This method return an array of ReflectionMethod;
For example:
$reflection = new ReflectionClass('Test');
$aMethods = $reflection->getMethods();
var_dump($aMethods);
Display:
array(2) {
[0]=> &object(ReflectionMethod)#7 (2) {
["name"]=> string(11) "__construct"
["class"]=> string(9) "Test" }
[1]=> &object(ReflectionMethod)#8 (2) {
["name"]=> string(3) "run"
["class"]=> string(9) "Test" }
}
----
Server IP: 195.221.21.36
Probable Submitter: 77.75.49.11
----
Manual Page -- http://www.php.net/manual/en/reflectionclass.getmethods.php
Edit -- https://master.php.net/note/edit/97840
Del: integrated -- https://master.php.net/note/delete/97840/integrated
Del: useless -- https://master.php.net/note/delete/97840/useless
Del: bad code -- https://master.php.net/note/delete/97840/bad+code
Del: spam -- https://master.php.net/note/delete/97840/spam
Del: non-english -- https://master.php.net/note/delete/97840/non-english
Del: in docs -- https://master.php.net/note/delete/97840/in+docs
Del: other reasons-- https://master.php.net/note/delete/97840
Reject -- https://master.php.net/note/reject/97840
Search -- https://master.php.net/manage/user-notes.php