I have 12 variables that I've put into an array - they're all numbers:
$min_rate = array($rate1,$rate2,...);
how can I find out what the minimum variable is?
😕
read here
after sort(), the first element of the array is min, the last is max read the user notes also
hope that helps
hmmm - so how do i get the first element of an array??
Try min(); 🙂
<?php $a = 4; $b = 9; $c = 3; $min = array($a, $b, $c); print min($min); // 3 ?>
excellent - thanks very much - of course it's min() !!!!:rolleyes: