View Single Post
Old 15th August 2010, 19:30
Rapid2214 Rapid2214 is offline
Senior Member
Join Date: Jun 2010
Posts: 105
Thanks: 3
Thanked 5 Times in 5 Posts
Unhappy PHP - Sort Months into order

I have an array which is produced by some other coding, essenitally it follows this santax:

array("September, "March", "December", "August", "January")
What I want to be able to do is to order these, so it would be:

array("January", "March", "August", "September", "December")
All i can think of doing is comparing it to the months in order, but can find a function to 'Sort By Array'.

I've tried using array_multisort() but with no sucess.

Any Ideas?

Reply With Quote
Sponsored Links