Is their any way to get the highest and lowest value among variables?
example is that i have this variables
$val1 = 10
$val2 = 20
$val3 = 30
$val4 = 40
$val5 = 50
and among this variable i want to display or put to another variable the variable that has the highest and lowest value. just like below.
$highval = $val5;
$lowval = $val1;
$val5
in $highval
coz it has the value of 50
and
$val1
in $lowval
coz it has the value of 10 .
thanks