<?php $array_2 = [ [ 1, 2, 7 ], [ 4, 5, 6 ] ]; $tot = 0; foreach($array_2 as $value){ $tot +=array_sum($value); } echo $tot;
You have javascript disabled. You will not be able to edit any code.