I have two array like this:
Array(
[0] => (
[id] => 1,
[order_id] => 1,
[image_url] => /resources/filename1
),
[1] => (
[id] => 2,
[order_id] => 1,
[image_url] => /resources/filename2
)
)
I want to merge imge_url
in single array because of order_id
, one order_id have multiple images.
I am expecting array like this:
Array(
[id] => 1,
[order_id] => 1,
[image_url] => (
[0] => "/resources/filename1",
[1] => "/resources/filename2"
)
)