http://blog.csdn.net/xyzchenxiaolin/article/details/51700485
源数据:
$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'
)
);
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
处理要求:将数组中a相同的二维数组合并到一个数组中,生成一个新的数组
代码:
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/114122.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...