匿名函数(闭包)
$val = array(); array_walk_recursive($array, function ($x) use (&$val) { $val[] = $x; }); return $val;