I'm hoping there's an easy way to do this without tons and tons of loops.
I have a matrix in the following manner:
Weight1 Weight2 Weight3 .... WeightN
Jan 1 3 5 4
Feb 10 12 15 11
Mar 5 7 4 3
Apr 10 15 7 3
Assuming the following array:
$arrayMonths = array(
'jan' => array(1, 3, 5,4)
'feb' => array(10,12,15,11)
'mar' => array(5, 7, 4, 3)
'apr' => array(10,15,7,3)
);
What is the best way for me to get the the max for each row: jan = 5 feb = 15 mar = 7 apr = 15
Thanks