(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.
Programming question
Moderator: Thanas
I don't know PHP syntax, but couldn't you just make a variable, set it to the value of the first value in a column, test to see if the next value is larger, if so assign it to your variable, then increment to the next value?
Children of the Ancients
I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.
I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.