RE: [PHP] multi dimension array sort help

From: Date: Thu, 05 Feb 2004 04:41:51 +0000
Subject: RE: [PHP] multi dimension array sort help
Groups: php.general 
Request: Send a blank email to php-general+get-176863@lists.php.net to get a copy of this message
would usort() be better for this? Martin > -----Original Message----- > From: Justin French [mailto:justin@indent.com.au] > Sent: Thursday, 5 February 2004 3:33 PM > To: php > Subject: [PHP] multi dimension array sort help > > > Hi, > > I've read and re-read array_multisort(), but still can't get > a grip on > how to sort my array: > > Array > ( > [0] => Array > ( > [path_id] => 3 > [year] => 2004 > [month] => 02 > [day] => 05 > [hits] => 3 > [path] => home > ) > > [1] => Array > ( > [path_id] => 2 > [year] => 2004 > [month] => 02 > [day] => 05 > [hits] => 1 > [path] => plan > ) > > [2] => Array > ( > [path_id] => 7 > [year] => 2004 > [month] => 02 > [day] => 05 > [hits] => 1 > [path] => specials > ) > > ) > > > In this case, I'd like to sort the entire array on [path]. > Can anyone > provide some tips or an example to start from? > > Justin French > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#176863) next »