In the multidimensional array like the example given below, how to calculate values with the same index and store them in a new array:
$a = array( 0 => arr