I have an array that has all of the hours of the day listed, 0-23 like this:
[0] = 0 [1] = 1 [2] = 2 .... etc
Then I used date('G') to find the current hour, for example, 17.
What I want to do is reorder my array so that it starts with the next hour, 18, and then 19, 20, 21, 22, 23, 0, 1, 2.. etc
What is the best way to do this? I am feeding this array to a chart that is showing data over the time and having it in this order would really make things easier.