We help IT Professionals succeed at work.
Get Started

PHP:  Sort array by date

detox1978
detox1978 asked
on
1,119 Views
Last Modified: 2013-12-12
Hi All,

I have a PHP array called $template['rows'] that has a key called date, samples below, does anyone know how i can sort the array by date?



3 June 2010, 12:52 pm
16 June 2010, 8:07 pm
15 June 2010, 7:27 pm
15 June 2010, 2:47 pm
14 June 2010, 10:49 pm
11 June 2010, 6:43 pm
10 June 2010, 9:02 pm
8 June 2010, 4:58 pm
8 June 2010, 4:54 pm
7 June 2010, 10:33 am
3 June 2010, 12:52 pm
15 June 2010, 7:06 pm
14 June 2010, 6:58 pm
12 June 2010, 9:30 am
11 June 2010, 10:11 am
10 June 2010, 9:17 pm
10 June 2010, 8:41 am
4 June 2010, 7:40 pm
4 June 2010, 7:06 pm
26 May 2010, 9:07 am
21 May 2010, 9:48 am
Comment
Watch Question
Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
Unlock 3 Answers and 17 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE