View Single Post
  #1  
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

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

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

Code:
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?

Marty
Reply With Quote
Sponsored Links