php 二维数组转换一维数组 $result = array_reduce($res, function ($result, $value) { return array_merge($result, array_values($value));}, array());