make a copy of the original array and sort that, when you find it correct key, use that to refer to the correct value in the original array.
Jim ----- Original Message ----- From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 11:24 AM Subject: Re: [PHP] Min and max of array > >you can sort it and get the values. > > I would, but I need the array in the same order. I can't sort it. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php