function reduce_array($array) {
$return = [];
array_walk_recursive($array, function ($x) use (&$return) {
$return[] = $x;
});
return $return;
}
PHP多维数组转一维数组
最新推荐文章于 2023-12-30 17:04:27 发布
function reduce_array($array) {
$return = [];
array_walk_recursive($array, function ($x) use (&$return) {
$return[] = $x;
});
return $return;
}