Hey guys,
i need some help/advice for formatting arrays.
Actually my arrays look like this:
Now i want them like this:
How could this be done?
I'm to deep in the code, so i'm not able to see a solution for this.
i need some help/advice for formatting arrays.
Actually my arrays look like this:
PHP:
array(array(product => 14 , amount => 4),array(product => 12 , amount => 9));
Now i want them like this:
PHP:
array('14' => array(amount => 4),'12' => array(amount => 9));
How could this be done?
I'm to deep in the code, so i'm not able to see a solution for this.