I have an array that has 4 elements with the same key names, for example:
{
"Word" : "ok",
"key_example" : "32",
"key_example" : "23",
"key_example" : "21",
"key_example" : "67"
}
Is there any easy way that I can loop through this with PHP and change the key names to be:
{
"Word" : "ok",
"key_example_1" : "32",
"key_example_2" : "23",
"key_example_3" : "21",
"key_example_4" : "67"
}