Array
(
[items] => Array
(
[0] => stdClass Object
(
[id] => 1
[order_id] => 1
[product_id] => 1
[user_id] => 2
[photographer_id] => 3
[attributes_id] => 2,3
[product_type] => 0
[status] => pending
[is_deleted] => 0
[created_at] => 2016-05-15 04:08:21
[updated_at] => 2016-05-16 12:11:23
[username] => user
[photographer] => photographer
[product_name] => sdf
)
[1] => stdClass Object
(
[id] => 2
[order_id] => 1
[product_id] => 2
[user_id] => 2
[photographer_id] => 3
[attributes_id] => 1,3
[product_type] => 1
[status] => pending
[is_deleted] => 0
[created_at] => 2016-05-15 04:08:21
[updated_at] => 2016-05-16 12:11:23
[username] => user
[photographer] => photographer
[product_name] => qqqqqqqqqq
)
[attributesValue] => Array
(
[0] => Attributes 2, Attributes 3
[1] => Attributes 1, Attributes 3
)
)
)
I want this array in (see, I added one key name attributes)
Array
(
[items] => Array
(
[0] => stdClass Object
(
[id] => 1
[order_id] => 1
[product_id] => 1
[user_id] => 2
[photographer_id] => 3
[attributes_id] => 2,3
[product_type] => 0
[status] => pending
[is_deleted] => 0
[created_at] => 2016-05-15 04:08:21
[updated_at] => 2016-05-16 12:11:23
[username] => user
[photographer] => photographer
[product_name] => sdf
[attributes] => Attributes 2, Attributes 3
)
[1] => stdClass Object
(
[id] => 2
[order_id] => 1
[product_id] => 2
[user_id] => 2
[photographer_id] => 3
[attributes_id] => 1,3
[product_type] => 1
[status] => pending
[is_deleted] => 0
[created_at] => 2016-05-15 04:08:21
[updated_at] => 2016-05-16 12:11:23
[username] => user
[photographer] => photographer
[product_name] => qqqqqqqqqq
[attributes] => Attributes 1, Attributes 3
)
)
)
attributesValuewith each entry initemsexcludingattributesValuebut its not clear whether this is the case.