Re: Determine variable with the lowest value?
| From: | Greg Donald | Date: | Wed, 13 Oct 2004 22:22:25 +0000 |
| Subject: | Re: Determine variable with the lowest value? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199445@lists.php.net to get a copy of this message | ||
On Wed, 13 Oct 2004 17:19:28 -0500, BOOT <pfine@of-law.com> 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 Engineer
http://gdconsultants.com/
http://destiney.com/