Skip to content
Advertisement

How to append arbitrary values to duplicate values in array php

I have photo array like

JavaScript

I need it like

JavaScript

How to do it in php

Advertisement

Answer

is it what you look for ?

this is working code, you can copy to test the output and try modify the $array to test different output.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement