There is an array
`Array (
[0] => Array (
[item] => Array (
[id] => 55
[count] => 4
)
)
[1] => Array (
[item] => Array (
[id] => 15
[count] => 1
)
)
[2] => Array (
[item] => Array (
[id] => 55
[count] => 12
)
)
[3] => Array (
[item] => Array (
[id] => 15
[count] => 6
)
)
)`
You need to iterate over the array in php. Find duplicates by id and add the count column in them
For example, you need to make it work
`Array (
[0] => Array (
[item] => Array (
[id] => 55
[count] => 16
)
)
[1] => Array (
[item] => Array (
[id] => 15
[count] => 7
)
)
)`
I can’t figure out how to do it. I hope for the help of experts!