Suppose that I have two arrays:
$v_4 = array(array(1,2,3),array(4,5,6));
$v_5 = array(array(7,8,9),array(10,11,12));
How should I construct an addition function to add across these arrays so as to get:
$new_array = array(array(8,10,12),array(14,16,18));
I know I need to utilise array_map
somehow, but I am unsure how to proceed in the multidimensional case.