0

I am pulling stats from my database, and grouping them by Hours/days from within mysql.

What I need to create is a PHP array of hours, starting from the current time and going backwards. So it might look like:

2015-07-07 13:00

2015-07-07 12:00

2015-07-07 11:00

2015-07-07 10:00

...

2015-07-06 13:00

for the array keys. I will dump my stats into the correct key.

Jay
  • 443
  • 8
  • 23

0 Answers0