crashmaster Posted January 4, 2008 Share Posted January 4, 2008 Hi there, I have array Array ( [35] => 4.7143 [85] => 4.4286 [17] => 4.6667 [91] => 4.5 [86] => 4.1667 [83] => 4.3333 [87] => 4.8 [93] => 5 [23] => 4.8 [22] => 5 [40] => 5 [90] => 5 [92] => 5 [55] => 4.3333 [52] => 5 [53] => 5 [56] => 5 [39] => 5 [94] => 5 [89] => 5 ) How to sort array by VALUES ??? thx Link to comment https://forums.phpfreaks.com/topic/84409-solved-sorting-array/ Share on other sites More sharing options...
hitman6003 Posted January 4, 2008 Share Posted January 4, 2008 sort or natsort or natcasesort or rsort or asort or arsort http://www.php.net/sort Link to comment https://forums.phpfreaks.com/topic/84409-solved-sorting-array/#findComment-429925 Share on other sites More sharing options...
crashmaster Posted January 4, 2008 Author Share Posted January 4, 2008 thx Link to comment https://forums.phpfreaks.com/topic/84409-solved-sorting-array/#findComment-429929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.