Reflection question
| From: | Pulni4kiya | Date: | Tue, 14 Apr 2009 11:53:06 +0000 |
| Subject: | Reflection question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-291470@lists.php.net to get a copy of this message | ||
Hi, everyone!
I need to do the following:
Let's say I have this class:
class A {
public function b(array $c, $d = 6) { ... }
}
I need to get this in runtime:
"public function b(array $c, $d = 6)"
What's the best way to do it?
(I don't quite like the idea of reading the file in which the class is defined and it might not always work...)