-3
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 him to stay that way:
$dados = array(
array('Janeiro', 10),
array('Fevereiro', 10),
array('Março', 10),
array('Abril', 30),
But I’m not getting it.
And where are these whole months associated?
– Marcelo de Andrade
The month that is in number you want to turn in full and in English, this is the problem? those 10 and the 30 I have no idea what it is.
– rray
January, February, March and April we can deduce that is the number of the month (it remains to be seen whether it starts at 0 or 1). Now the 10,10,10,30, as Marcelo said, only the top array can not deduce what they are. They would be the number of machines?
– Antonio Alexandre