Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Check a definition(how many arguments, of what type etc) of php function

For example in PHP im passing function as argument

$someClass->doStuff(function(Test1 $a, Test2 $b){
    // do here some stuff with $a, $b;
});

Where $someClass is zephir object. How to get definition of this passed function ? Like how many arguments and of which type someone provided ?



917
Accepted
answer
edited Dec '15

Well - i can just use ReflectionFunction