Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP] Max and min values in array

0 views
Skip to first unread message

Liam Gibbs

unread,
Oct 18, 2002, 11:45:55 AM10/18/02
to php-g...@lists.php.net
<<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.

Jason Wong

unread,
Oct 18, 2002, 1:06:51 PM10/18/02
to php-g...@lists.php.net

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"
*/

0 new messages