php二维数组转成一维数组

$arr是需要转换的数组集合
array_reduce($arr, 'array_merge', array());

  

猜你喜欢

转载自www.cnblogs.com/love1226/p/11260351.html