标签:
//查询产品线下 已设为兼容性的类目
$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);
标签:
原文地址:http://www.cnblogs.com/gaoyinghui/p/4277427.html