array(10) {
[0]=>
array(4) {
["data"]=>
string(10) "01/11/2015"
["valor"]=>
int(50)
["intensidade"]=>
float(37.5)
["carga"]=>
int(35)
}
[1]=>
array(4) {
["data"]=>
string(10) "01/11/2015"
["valor"]=>
int(52)
["intensidade"]=>
float(33.8)
["carga"]=>
int(60)
}
[2]=>
array(4) {
["data"]=>
string(10) "01/11/2015"
["valor"]=>
int(25)
["intensidade"]=>
float(21.75)
["carga"]=>
int(15)
}
[3]=>
array(4) {
["data"]=>
string(10) "02/11/2015"
["valor"]=>
int(52)
["intensidade"]=>
float(33.8)
["carga"]=>
int(60)
}
[4]=>
array(4) {
["data"]=>
string(10) "02/11/2015"
["valor"]=>
int(52)
["intensidade"]=>
float(33.8)
["carga"]=>
int(60)
}
[5]=>
array(4) {
["data"]=>
string(10) "05/11/2015"
["valor"]=>
int(52)
["intensidade"]=>
float(33.8)
["carga"]=>
int(60)
}
}
So, I have this array and I need to calculate the data of the same date and divide by how many times it appears, after that I need to regenerate the array with the new data.