Ok, I am using the min tag to decide which value is lowest. Works fine of course but I need to do something a little extra. I have two corresponding arrays.. for example:
$vars = Array("item1", "item2", "item3");
$vals = Array("400", "200", "600");
$low = min($vals);
echo $low;
This works, it prints out the lowest value fine. What if I want to pull the corresponding variable in the vars array.
So if it prints out the value form $vals of 200 how would vars know which item to pull. I guess essentially what i am asking, is if there is a way to reference the index value and so I can refer that to the vars array. In the end I want to be able to print out something like this...
item2: 200
hope this makes sense, thanks for your time and help.