源数据:
$infos = array(
array(
'a' => 36,
'b' => 'xa',
'c' => '2015-08-28 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
),
array(
'a' => 3,
'b' => 'vd',
'c' => '2015-08-20 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
),
array(
'a' => 6,
'b' => 'wwe',
'c' => '2015-08-28 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
),
array(
'a' => 36,
'b' => 'se',
'c' => '2015-08-28 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
),
array(
'a' => 6,
'b' => 'aw',
'c' => '2015-08-28 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
),
array(
'a' => 36,
'b' => 'bv',
'c' => '2015-08-28 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
),
array(
'a' => 12,
'b' => 'xx',
'c' => '2015-08-27 00:00:00',
'd' => '2015/08/438488a00b3219929282e3652061c2e3.png'
)
);
处理要求:将数组中a相同的二维数组合并到一个数组中,生成一个新的数组
代码:
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/114122.html原文链接:https://javaforall.cn