The problem is to get the parameters and mostly their type-hinting.
At the end I decided to just cast the ReflectionParameter classes to strings
and get the type-hinting from there, even though it shouldn't normally be
done this way, but I don't think there's a better way now.
--
PHP General
Have a look at example #5 on
http://de3.php.net/manual/en/language.oop5.reflection.php#language.oop5.reflection.reflectionmethod
Greetings from Germany
Marc
Pulni4kiya wrote:
Hi, everyone!
I need to do the following:
Let's say I have this class:
class A {
public function b(array $c, $d =
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
3 matches
Mail list logo