Ah, I completely misread, I thought you said numbers in an array, not a set of variables. In that case:
PHP Code:
temp.lowest={-1,999999};
for (i=0;i<temp.array.size();i++) {
if (i<temp.lowest) {
temp.lowest={i,temp.array[i]};
}
}
It's a little more compact.