I want to keep both values with the same key, but rename the other one.
I tried array_merge()
but it only keeps the last value.
Here is what the array looks like
[0] => Array
(
[process] => A
[start] => 0
)
[1] => Array
(
[process] => A
[end] => 1
)
[2] => Array
(
[process] => A
[start] => 9
)
[3] => Array
(
[process] => A
[end] => 14
)
I want to keep only the first value of the key end
but, keep both values of start
. To make it like:
Array
(
[process] => A
[start] => 0
[start2] => 9
[end] => 1
)