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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 18, 2010 Share Posted November 18, 2010 Are you talking about arsort()? Quote Link to comment Share on other sites More sharing options...
EchoFool Posted November 18, 2010 Author Share Posted November 18, 2010 Thats the one thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.