Programming question
Posted: 2005-09-26 05:24pm
(In PHP)
I've got a simple matrix $row[$x][$y], where $x represents the current row and $y represents the current column.
I can get the maximum value of the columns in the current row with max($row[$x]). Does anyone know how I could fetch the maximum of the value of the rows in the current column? I tried max($row[][$y]) but that returned a parse error (not unexpectedly.) I'm basically trying to compare the first element in each row, which I'll then loop for the second element and third element, ect.
I've got a simple matrix $row[$x][$y], where $x represents the current row and $y represents the current column.
I can get the maximum value of the columns in the current row with max($row[$x]). Does anyone know how I could fetch the maximum of the value of the rows in the current column? I tried max($row[][$y]) but that returned a parse error (not unexpectedly.) I'm basically trying to compare the first element in each row, which I'll then loop for the second element and third element, ect.