//查询产品线下 已设为兼容性的类目
$data = array(
array('id' => 1, 'name'
=> 'Bob', 'position' => 'Clerk'),
array('id' => 2,
'name' => 'Alan', 'position' => 'Manager'),
array('id' =>
3, 'name' => 'James', 'position' => 'Director')
);
$names = array_map(
function($person) { return
$person['name']; },
$data
);
print_r($names);