Re: [PHP] Determine variable with the lowest value?

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 17:19:28 -0500, BOOT [EMAIL PROTECTED] wrote: the code should determine that $a and $b have the lowest value, and randomly pick one of them. if $a was = 1 instead then it would just pick $a Thanks for any suggestions! Use an array. -- Greg Donald Zend Certified

Re: [PHP] Determine variable with the lowest value?

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 06:19, BOOT wrote: [snip] I have been able to do this by means of if comparisons but the more I variables I add then the more complicated and messy it becomes. There has to be a simpler way. If it makes any difference, the variables could just as easily be array