The array is coming in this database format:
array (size=12)
0 =>
array (size=3)
'maquinas' => string '111' (length=3)
'mes' => string '1' (length=1)
'YEAR(data_ordem)' => string '2016' (length=4)
1 =>
array (size=3)
'maquinas' => string '99' (length=2)
'mes' => string '2' (length=1)
'YEAR(data_ordem)' => string '2016' (length=4)
2 =>
array (size=3)
'maquinas' => string '116' (length=3)
'mes' => string '3' (length=1)
'YEAR(data_ordem)' => string '2016' (length=4)
I need it to look like this:
$dados = array(
array('Janeiro', 10),
array('Fevereiro', 10),
array('Março', 10),
array('Abril', 30),
But I can not.