Re: Re: Extracting multi dimensional array value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux