I have this array:
$people = array(
'kids' => 100,
'adults' => function() {
return 1000
}
);
If I do print_r($people)
I get:
Array ([kids] => 100, [adults] => Closure Object() )
How do I get - at that same array position - the return value of the closure object instead of the Closure Object itself?
Is this possible in PHP ?