0
我有以下的數組:PHP ARRAY - 結合還是分組?
Array
(
[0] => Array
(
[0] => Monday
[1] => 0
[2] => 1
)
[1] => Array
(
[0] => Friday
[1] => 4717
[2] => 1
)
[2] => Array
(
[0] => Friday
[1] => 2074
[2] => 1
)
[3] => Array
(
[0] => Thursday
[1] => 1520
[2] => 1
)
)
我想重複的天結合在一起,同時還加入2個值([1] + [1]和[2] + [2])一起使用。
例如,星期五是重複的,從而它會返回: [0] =>星期五 [1] => 6791 [2] => 2
任何想法?