目录
- 1 array_reduce函数法
- 2 array_walk_recursive函数法
- 3 array_map函数法
假设有下面一个二维数组:
$user = array(
'0' => array('id' => 100, 'username' => 'a1'), '1' => array('id' => 101, 'username' => 'a2'), '2' => array('id' => 102, 'username' => 'a3'), '3' => array('id' => 103, 'username' => 'a4'), '4' => array('id' =>