shivani.shm Posted August 25, 2008 Share Posted August 25, 2008 hi I have a array as follows [20081219] => Array ( [1345002] => Array ( [144] => 20081219 ) [1000001] => Array ( [140] => 20081219 ) ) and i wnt the output after sorting as [20081219] => Array ( [1000001] => Array ( [140] => 20081219 ) [1345002] => Array ( [144] => 20081219 ) ) how can i do tht plz help thanks in advance Link to comment https://forums.phpfreaks.com/topic/121227-array-sorting/ Share on other sites More sharing options...
Mchl Posted August 25, 2008 Share Posted August 25, 2008 ksort() Link to comment https://forums.phpfreaks.com/topic/121227-array-sorting/#findComment-624920 Share on other sites More sharing options...
trink Posted August 25, 2008 Share Posted August 25, 2008 I originally said natsort() without thinking, it would be ksort(), my bad. Link to comment https://forums.phpfreaks.com/topic/121227-array-sorting/#findComment-624921 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.