I have array like this :
Array
(
[attribute] => Array
(
[0] => sku
[1] => sku
[2] => attribute_set_id
)
[value] => Array
(
[0] => 1, 2, 3
[1] => 3, 4
[2] => 4
)
)
In the above array attributes are like keys and values are values .I want to concatenate same key values like here required sku will be (1,2,3,4). I can join them by combine array.The result array will be like
array('sku'=>'1,2,3,4',attribute_set_id=>'4');
The above array will be dynamic.
I don’t think there is a builtin function to do the job, you have to write the algorithm yourself, something like