stevepatd Posted February 26, 2007 Share Posted February 26, 2007 I'm reading in a file to an array (flat file database essentially). I would like to sort it. Sometimes I want to sort it on field[0], sometimes on another field. I don't even know where to start. Is there a function that will do this? Does anybody have a piece of code for this? Quote Link to comment Share on other sites More sharing options...
utexas_pjm Posted February 26, 2007 Share Posted February 26, 2007 http://php.net/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.