Dunno if it is the right title or not, but i'm struggling to do the following thing:
say I have this array
Array
(
[0] => Array
(
[id_ptp] => 1
[denumire_ptp] => Hrană uscată
)
[1] => Array
(
[id_ptp] => 2
[denumire_ptp] => Hrană umedă
)
[2] => Array
(
[id_ptp] => 3
[denumire_ptp] => Hrană vie
)
)
how can I make it to become like this:
[
'1' => 'Hrană uscată',
'2' => 'Hrană umedă',
'3' => 'Hrană vie',
]
Better question, is there a function that does that? Because I was not able to find it.