Sorting an array of arrays....

From: Date: Thu, 14 Feb 2002 16:26:17 +0000
Subject: Sorting an array of arrays....
Groups: php.general 
Request: Send a blank email to php-general+get-84753@lists.php.net to get a copy of this message
What I am trying to do is sort a array of arrays but I want to sort by one of the pieces of data stored in the arrays inside the array. For example; $data[blue] = array("name", "age", "time", "3"); $data[green] = array("name", "age", "time", "7"); $data[red] = array("name", "age", "time", "6"); $data[yellow] = array("name", "age", "time", "2"); $data[white] = array("name", "age", "time", "1"); $data[black] = array("name", "age", "time", "9"); I want to be able to sort this array of arrays by the very last element, the numbers. Mike Fifield Charles Schwab & Co, Inc. WARNING: All e-mail sent to or from this address will be received by the Charles Schwab corporate e-mail system and is subject to archival and review by someone other than the recipient.

« previous php.general (#84753) next »