Skip to content

Instantly share code, notes, and snippets.

@veganista
Created September 19, 2012 19:39
Show Gist options
  • Save veganista/3751761 to your computer and use it in GitHub Desktop.
Save veganista/3751761 to your computer and use it in GitHub Desktop.
//current find results look like this
array
0 =>
array
0 =>
array
'year' => string '2012' (length=4)
'month' => string 'May' (length=3)
'count' => string '5' (length=1)
1 =>
array
0 =>
array
'year' => string '2012' (length=4)
'month' => string 'June' (length=4)
'count' => string '5' (length=1)
2 =>
array
0 =>
array
'year' => string '2012' (length=4)
'month' => string 'August' (length=6)
'count' => string '4' (length=1)
3 =>
array
0 =>
array
'year' => string '2012' (length=4)
'month' => string 'September' (length=9)
'count' => string '4' (length=1)
//ideally i want them like
array
0 =>
array
'year' => string '2012' (length=4)
'month' => string 'May' (length=3)
'count' => string '5' (length=1)
1 =>
array
'year' => string '2012' (length=4)
'month' => string 'June' (length=4)
'count' => string '5' (length=1)
2 =>
array
'year' => string '2012' (length=4)
'month' => string 'August' (length=6)
'count' => string '4' (length=1)
3 =>
array
'year' => string '2012' (length=4)
'month' => string 'September' (length=9)
'count' => string '4' (length=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment