I have this array, with these values:
Array
(
[0] => Array
    (
        [0] => 001
        [1] => NAME1
        [2] => 14
    )
[1] => Array
    (
        [0] => 002
        [1] => NAME2
        [2] => 2
    )
[2] => Array
    (
        [0] => 001
        [1] => NAME1
        [2] => 12
}
}
I want export this in csv format but with sum of all value [2] with same number [0]:
Array
(
[0] => Array
    (
        [0] => 001
        [1] => NAME1
        [2] => 26
    )
[1] => Array
    (
        [0] => 002
        [1] => NAME2
        [2] => 2
    )
}
}
I have tried this:
How to sum values of the array of the same element id
but it doesn't work for value [1].
Could you help me, please?
 
     
     
    