Jump to content

getting lowest and highest value out of group of variables


advancedfuture

Recommended Posts

So lets say I have a group of varialbes all with different numerical values, and I want to print to find and print the varialbe with the lowest value and the highest value.. How would I write that in PHP... the varialbes are dynamic and can change.

 

$val1 = 100;
$val2 = 300;
$val3 = 600;
$val4 = 1;
$val5 = 20;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.