I have array which conatins (MANY) assoc arrays with values. I want to merge those nested arrays into single array. I tried call_user_func_array('array_merge', $bigArray)
, but this will write into same keys, since they are assoc and they repeat. So I need something that ignores array keys and just merges values.
My array:
[
['a' => 'aaa', 'b' => 'bbb', 'c' => 'ccc'],
['a' => 'ddd', 'b' => 'eee', 'c' => 'fff'],
]
Desired result:
['aaa', 'bbb', 'ccc', 'ddd', 'eee', 'fff']