Need to create one array from multidimensional array
I have multi-dimensional array as follows. Array may be longer.Array([0] => Array([1] => unsatisfied [2] => unsatisfied [3] => satisfied [5] => satisfied [6] => oversatisfied [7] => oversatisfied ) [1] => Array ( [1] => satisfied [2] => oversatisfied [3] => unsatisfied [5] => satisfied [6] => satisfied [7] => satisfied )) Now, I want this array in below format. Here we calculated as per value 'satisfied' for each key and sum it.Array( [1] => 1 [2] => 0 [3] => 1 [5] => 2 [6] => 1 [7] => 1)


Need to create one array from multidimensional array
===

I have multi-dimensional array as follows. Array may be longer.Array([0] => Array([1] => unsatisfied [2] => unsatisfied [3] => satisfied [5] => satisfied [6] => oversatisfied [7] => oversatisfied ) [1] => Array ( [1] => satisfied [2] => oversatisfied [3] => unsatisfied [5] => satisfied [6] => satisfied [7] => satisfied )) Now, I want this array in below format. Here we calculated as per value 'satisfied' for each key and sum it.Array( [1] => 1 [2] => 0 [3] => 1 [5] => 2 [6] => 1 [7] => 1)

