tags:

views:

43

answers:

1

I need to be able to interrogate a function/method and get a list of the arguments which that function expects, from outside the function, before the function is called.

So not argument values, but a list of expected argument 'slots' per say.

Possible?

+4  A: 

Take a look at PHP Reflection - specifically the ReflectionParameter class...

http://nz.php.net/manual/en/language.oop5.reflection.php#language.oop5.reflection.reflectionparameter

gahooa
Very cool. This is _just_ for the Zend engine right now?
Jonathan Sampson
Thank you very much!
Thank you very much, awesome answer!
Mark Tomlin