Click to See Complete Forum and Search --> : Checking Variables to see the highest


Ascendancy
06-04-2007, 01:55 PM
Let's say that I have 13 variables, $one through $thirteen. How can I take the 13 variables and compare them all to see which one has the highest value(If all of them are set to number values)?

Charles
06-04-2007, 03:09 PM
http://www.php.net/manual/en/function.max.php

Ascendancy
06-04-2007, 04:05 PM
Didn't even know about that function, thanks for the help.