My array is like this:
Array (
[0] => Array (
[0] => aaa-aaa
[SKU] => aaa-aaa
[1] => 12/1/1
[date] => 12/1/1
[2] => 1.15
[cost] => 1.15 )
[1] => Array (
[0] => bbb-bbb
[SKU] => bbb-bbb
[1] => 10/1/1
[date] => 10/1/1
[2] => 0.15
[cost] => 0.15 )
)
I'd like to merge the matching values to each other, or make a new array selecting the indexes, or use a php tool to print specified indexes to csv: aaa-aaa, 12/1/1, 1.15 \n bbb-bbb, 10/1/1, 0.15
It cannot be queried because this information is coming from 4 different tables, from 2 different sql providers. These arrays are the result of mapping previous arrays.
array_unique()
doesn't work, array_diff()
doesn't work, array_diff_key()
doesn't work.
You direction is much appreciated!