Re: Max and min values in array
| From: | Jason Wong | Date: | Fri, 18 Oct 2002 17:06:51 +0000 |
| Subject: | Re: Max and min values in array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120537@lists.php.net to get a copy of this message | ||
On Friday 18 October 2002 23:45, Liam.Gibbs@dfait-maeci.gc.ca wrote:
> <<Is there a way of finding out the max and min values in an array without
> resorting it?>>
>
> I should say is there a function. I don't want to have to loop through each
> element in the array and compare it to current values.
Well, all array functions are in the "Array Functions" section of the manual.
If there is such a function it should be listed there.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Lord, what fools these mortals be!
-- William Shakespeare, "A Midsummer-Night's Dream"
*/