EchoFool Posted November 18, 2010 Share Posted November 18, 2010 Is there a way to use sort($Array) on numbers but reverse it. So instead of 1 to 3 itll do 3 to 1 ? AKA descending order? Can't find a function that would do unless theres a second sort function ? Thanks Link to comment https://forums.phpfreaks.com/topic/219110-array-sort/ Share on other sites More sharing options...
seanlim Posted November 18, 2010 Share Posted November 18, 2010 http://www.php.net/manual/en/function.rsort.php or http://www.php.net/manual/en/function.array-reverse.php Link to comment https://forums.phpfreaks.com/topic/219110-array-sort/#findComment-1136242 Share on other sites More sharing options...
Pikachu2000 Posted November 18, 2010 Share Posted November 18, 2010 Are you talking about arsort()? Link to comment https://forums.phpfreaks.com/topic/219110-array-sort/#findComment-1136243 Share on other sites More sharing options...
EchoFool Posted November 18, 2010 Author Share Posted November 18, 2010 Thats the one thanks! Link to comment https://forums.phpfreaks.com/topic/219110-array-sort/#findComment-1136252 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.