<?php $v_4 = [ [1, 2, 3], [4, 5, 6], ]; $v_5 = [ [7, 8, 9], [10, 11, 12], ]; var_export( array_map( fn(...$row) => array_map( fn(...$col) => array_sum($col), ...$row ), $v_4, $v_5 ) );
You have javascript disabled. You will not be able to edit any code.