I have this array, and I want to remove the duplicate keys from it.
Array
(
[8] => Array
(
[7] => one name
[27] => Array
(
[27] => Array
(
[31] => other name
)
)
[10] => Array
(
[10] => Array
(
[24] => Array
(
[24] => Array
(
[30] => some name
)
)
)
)
)
)
I want to remove the first 27, first 10 and first 24, how can I do it?
The result should be like this
Just remove the duplicates keys
Array
(
[8] => Array
(
[7] => one name
[27] => Array
(
[31] => other name
)
[10] => Array
(
[24] => Array
(
[30] => some name
)
)
)
)
I got this structure by building a loop function