I'm trying to do the sum and I do not know which is the most effective way to add five values that will soon be more the simplest is $Datos[0]["Valor"]+$Datos[1]["Valor"]...
but it would be the dirtiest so to speak.
I thought of while or for but I do not know how to put the sum syntax so that I add it directly since it would be $Datos[$i]["Valor"]
but it takes the values separately without adding.
I'm using the abrupt $C1 = $Datos[0]["Caida1"]+$Datos[1]["Caida1"]+$Datos[2]["Caida1"]+$Datos[3]["Caida1"]+$Datos[4]["Caida1"];
I tried with for ($i = 0, $j = 0; $i <= 4; $j += $i, print $i, $i++);
but I do not know how to put the sum there