How to get this array:
Array
(
[0] => Array
(
[max] => 5
[year] => 2007
)
[1] => Array
(
[max] => 6.05
[year] => 2008
)
[2] => Array
(
[max] => 7
[year] => 2009
)
)
In this format:
[year] => [max]
(ashamed of my ignorance ... one of those days)
a source
to share