Woodburn2006 Posted November 22, 2007 Share Posted November 22, 2007 i am getting some data from a database and using php to do some maths on it, at the end i will have loads of different values in a list, is there any way of sorting these values in ascending order using php? Quote Link to comment Share on other sites More sharing options...
Daukan Posted November 22, 2007 Share Posted November 22, 2007 sort() Quote Link to comment Share on other sites More sharing options...
Woodburn2006 Posted November 22, 2007 Author Share Posted November 22, 2007 cool thanks, but the problem i have is that i am sorting a league table therefore within a single array i would have: the name, wins, second places, third places and total points. then i will need to sort these by the total points so that i can have a league table. is there any way of doing that? Quote Link to comment Share on other sites More sharing options...
Daukan Posted November 22, 2007 Share Posted November 22, 2007 usort() 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.