Re: Sorting Arrays

From: Date: Thu, 28 Dec 2000 18:30:34 +0000
Subject: Re: Sorting Arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32122@lists.php.net to get a copy of this message
Interesting. Haven't tried but one may consider : PHP Manual (4) : array_multisort() http://www.php.net/manual/function.array-multisort.php It looks made for this sort of job. Philip .sig [ Sometimes I'm an idiot! ] On Thu, 28 Dec 2000, David OBrien wrote: > I have an array. I would like to sort it on the minutes field I read the > docs but most was for 1D stuff not multiple dimensions. Any help would be > appreciated. > -Dave > > > Array > ( > [0] => Array > ( > [username] => petion > [nas] => pm3-0 > [port] => S1 > [timeon] => Thu 11:05 > [minutes] => 46 > ) > > [1] => Array > ( > [username] => cnrealtor > [nas] => pm3-0 > [port] => S2 > [timeon] => Thu 11:09 > [minutes] => 42 > ) > > [2] => Array > ( > [username] => lrich > [nas] => pm3-0 > [port] => S4 > [timeon] => Thu 11:45 > [minutes] => 6 > ) > > [3] => Array > ( > [username] => bobsvi > [nas] => pm3-0 > [port] => S3 > [timeon] => Thu 10:55 > [minutes] => 56 > ) > > [4] => Array > ( > [username] => wick > [nas] => pm3-0 > [port] => S6 > [timeon] => Thu 11:46 > [minutes] => 5 > ) > > [5] => Array > ( > [username] => bmcycles > [nas] => pm3-0 > [port] => S7 > [timeon] => Thu 11:46 > [minutes] => 5 > ) > } > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32122) next »