How would I take the top array and convert the objects into the bottom aspect?
$arr = array(
"action: Added; quantity: 1; item_code: RNA1; product_name: Mens Organic T-shirt; colour: White; size: XL",
"action: Subtracted; quantity: 7; item_code: RNC1; product_name: Kids Basic T-shirt; colour: Denim Blue; size: 3-4y",
"action: Added; quantity: 20; item_code: RNV1; product_name: Gift Voucher; style: Mens; value: £20",
);
array(
'action' => '',
'quantity' => '',
'item_code' => '',
'product_name' => '',
'colour' => '',
'size' => '',
);
My friend has asked me to help with this but I'm not very familiar with this area.