$list = [
0 => [
'id' => 10001,
'name' => '诸若',
'sex' => '男'
],
1 => [
'id' => 10002,
'name' => '菲菲',
'sex' => '女'
],
2 => [
'id' => 10003,
'name' => '李静',
'sex' => '女'
]
];
$res = array_map(function($item) {
unset($item['name']);
return $item;
},$list);
var_dump($res);die;