Arrays?

From: Date: Mon, 08 Jan 2007 06:41:25 +0000
Subject: Arrays?
Groups: php.general 
Request: Send a blank email to php-general+get-246732@lists.php.net to get a copy of this message
Hello, How to print out the following array $test so that the print order is by the fourth[4] key? I need to print out all arrays in $test so that the data is ordered by the fourth key in ascending order. $test =Array ( [0] => Array ( [0] => 5 [1] => 2 [2] => sika [3] => sika.php [4] => 1 ) [1] => Array ( [0] => 8 [1] =>2 [2] => Hono [3] => hono.php [4] => 1 ) [2] => Array ( [0] => 7 [1] => 2 [2] => Kameli [3] => kameli.php [4] => 4 ) [3] => Array ( [0] => 6 [1] => 2 [2] => koira [3] => koira.php [4] => 2 ) ) The way that the data is strored to $test makes it difficult/impossible to sort stuff the way I need here while reading it from DB. Thanks -Will

« previous php.general (#246732) next »