Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] Sorting 3 Dimensional Array From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <391D7CA5.17AD7D5E <email protected>>, tkianchye <email protected>
(tkianchye) wrote:

> Can any one please tell me how to sort a 3 Dimensional Array. The
> current function provided only support one or 2 dimensional. How about
> 3?

Sort it how?...

You may need to iterate through the first dimension and sort each
sub-array, or perhaps you could write a custom comparison function for
usort() that will evaluate and sort the sub-array...

There's no real way to answer this question unless you explain which
dimension you want to sort, and what to do with the other two dimensions.

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>