I have a simple php question.
I have a value like the following for 2 products. 1 product has options density, flavor and pid other product has option color and pid
product 1
density: Low 12mg, flavor: Dekang Dark USA Mix, pid: 165
product 2
color: Silver, pid: 5
The above 2 values comes in a single array
$items[$i]['options']
How can i convert it into an array of the following format...
product 1- density => 'Low 12mg, flavor => 'Dekang Dark USA Mix', pid => '165'
product 2- color => 'Silver', pid => '5'
and how to call it in a foreach loop so that i get values separately for 2 products ?