1
How could I pick up the parameters of a closure?
I was doing some tests and I gave one var_dump
in a closure and she returned me that
object(Closure)#5 (1) {
["parameter"]=>
array(2) {
["$val"]=>
string(10) ""
["$val2"]=>
string(10) ""
}
}
And I got the doubt, how I access the array 'paramenter'
?
var_dump("<pre>", function($val, $val2){ });
if you can put the complete code?
– novic
var_dump("<pre>", function($val, $val2){
});
– walace100
places the code in the question by editing the question
– novic