x_maras Posted July 26, 2009 Share Posted July 26, 2009 Hi, I want to store in an array some mysql_fetch_array(s), they have the same structure but I have to collect them one by one so I cant perform an "Order by". But later I want to show them sorted by year. for example In each field of the first array there is another one who has two(or more) fields (name and year) Is it possible to sort the first one by the value year? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 26, 2009 Share Posted July 26, 2009 I'm not 100% sure i follow your question, but it sounds like you might be after a user sort: usort (or, if you need to maintain associativity, which i think you might, uasort) Quote Link to comment Share on other sites More sharing options...
x_maras Posted July 26, 2009 Author Share Posted July 26, 2009 That was fast Yes, I was searching something like this. Thank you very much. I hope to make it work. 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.