I have an array of arrays:
$initial_array = [
[
'Site Name' => 'Sydney',
'Product Name' => 'Admission',
'Total Sales Value' => 3989.98,
'Total Sales Quantity' => 570
],
[
'Site Name' => 'Sydney',
'Product Name' => 'Admission Comp',
'Total Sales Value' => 0.00,
'Total Sales Quantity' => 195
]
];
That I want to use PHP to turn into a simple array as follows:
$translated_array = [
'Sydney,Admission,3989.98,570',
'Sydney,Admission Comp,0.00,195'
];
I've been playing with the array_values() function but cannot seem to get this right.