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 =
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
2 matches
Mail list logo