RE: [PHP] multi dimension array sort help

From: Date: Thu, 05 Feb 2004 12:06:49 +0000
Subject: RE: [PHP] multi dimension array sort help
Groups: php.general 
Request: Send a blank email to php-general+get-176882@lists.php.net to get a copy of this message
On 05 February 2004 04:33, Justin French wrote: > 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 > ) ... etc. I'm pretty sure this is one where multisort() is not the best approach, and usort() (or one of its friends) is where to look. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#176882) next »