My googlefoo has failed me. Given this array:
[0] => Array
(
[sku] => abc123
[price] => 19.95
[special_price] => 0
[tier20] => 13.48
[tier40] => 16.98
[tier50] => 17.48
)
[1] => Array
(
[sku] => def456
[price] => 129.98
[special_price] => 79.98
[tier50] => 123.48
[tier100] => 116.98
[tier250] => 110.48
)
The first 3 key->values will be the same between all elements (~2500 or so), but the last 3 there could be several dozen of total.
I need to generate a CSV file from this, where each sub-array (product) is a line, and each key gets a column? I specifically need each [tierX] to have a unique column.
sku, price, special_price, tier20, tier40, tier50, tier100, tier200, etc