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? Link to comment https://forums.phpfreaks.com/topic/40104-solved-sorting-an-array/ Share on other sites More sharing options...
utexas_pjm Posted February 26, 2007 Share Posted February 26, 2007 http://php.net/usort Link to comment https://forums.phpfreaks.com/topic/40104-solved-sorting-an-array/#findComment-194033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.