German Geek wrote: > Sorting is always more expensive than going through the array once. That's a good point! > I would > just iterate through once and keep track of the smallest or largest element > by storing the smallest or largest element in a temporary variable. There > should really be a php function for that. Actually, there is: min(), which seems to be the simplest and most efficient solution for Ron's task. -- Christoph M. Becker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php