Good morning
According to a query in php, it generates the following arrangement:
Array
(
[0] => Array
(
[Finca] => FINCA 1
[0] => FINCA 1
[Producto] => ALSTROEMERIA
[1] => ALSTROEMERIA
[year] => 2016
[2] => 2016
[week] => 26
[3] => 26
[quantity] => 91570
[4] => 91570
[quantity_origin] => 2096
[5] => 2096
)
[1] => Array
(
[Finca] => FINCA 2
[0] => FINCA 2
[Producto] => ALSTROEMERIA
[1] => ALSTROEMERIA
[year] => 2016
[2] => 2016
[week] => 26
[3] => 26
[quantity] => 65350
[4] => 65350
[quantity_origin] => 1444
[5] => 1444
)
)
How do I remove the indexes that are numeric, that is, the arrangement is as follows:
Array
(
[0] => Array
(
[Finca] => FINCA1
[Producto] => ALSTROEMERIA
[year] => 2016
[week] => 26
[quantity] => 91570
[quantity_origin] => 2096
)
[1] => Array
(
[Finca] => FINCA 2
[Producto] => ALSTROEMERIA
[year] => 2016
[week] => 26
[quantity] => 65350
[quantity_origin] => 1444
)
)
I did it with array_unique (), but there are values of the elements 'quantity' and 'quantity_origin' that are the same and with this function it only leaves me the 'quantity'.
Thank you very much, I hope my question is understood.