getting function's argument names

Posted by Gotys on Stack Overflow See other posts from Stack Overflow or by Gotys
Published on 2010-04-22T16:05:21Z Indexed on 2010/04/22 16:13 UTC
Read the original article Hit count: 156

Filed under:

in PHP Consider this function:

function test($name, $age) {}

I need to somehow extract the parameter names (for generating custom documentations automatically) so that I could do something like:

get_func_argNames('test');

and it would return Array['name','age'] .

Is this even possible in PHP ?

© Stack Overflow or respective owner

Related posts about php