Menu
curious as to how to create a quick lambda function
to take the keys of an already defined array and creating
a new array from them.
[code=php]
$type = ‘CHILD’;
$walk = array();
array_walk(create_function($data, ‘return “foreach ($data[$type] AS $k) $walk[$k endforeach;”‘));
print_r($walk);
just trying to understand create_function and lambda, failing miserably at both i guess