I have an array with keys 1, 2 and 3.
I would like to rearrange elements in a circular manner. So it will be like this:
1 => parent
2 => child
3 => child
2 => parent
1 => child
3 => child
3 => parent
1 => child
2 => child
Thanks for your helps.