I have and array of arrays:
$initial_array = Array ( [0] => Array ( [Site Name] => Sydney [Product Name] => Admission [Total Sales Value] => 3989.98 [Total Sales Quantity] => 570 ) [1] => Array ( [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 =
Array ( [0] => Sydney,Admission,3989.98,570 [1] => Sydney,Admission Comp,0.00,195 )
I've been playing with the array_values function but cannot seem to get this right, anyone any ideas? What's the best way to do this?