Here is my array
array(
[0] => array(
[unique_id] => us - B00SM1YGS6
[module_id] => Amazon
[create_date] => 2017 - 02 - 2101:39:35
[price] => 489.00
[post_id] => 3127)
[1] => array(
[unique_id] => us - B01G0EURDY
[module_id] => Amazon
[create_date] => 2017 - 02 - 1905:31:43
[price] => 799.00
[post_id] => 3112)
[2] => array(
[unique_id] => us - B01FZZX9VG
[module_id] => Amazon
[create_date] => 2017 - 02 - 1905:31:43
[price] => 199.75
[post_id] => 3112,
),
)
Now I want to make a new array which will hold the [unique_id] as key and prices as value
But in my array I have same unique_id repeated , so eventually I need something like this
array(
[us - B00SM1YGS6] => array(price1, price2, price3)
[us - B01G0EURDY] => array(price1, price2, price3),
)
How to do this ?
Thanks.