in reply to Array index move into another array

I know how to copy index from array to array. But, how to move one array index into another array
basically move is a copy+remove operation
so you can copy(like what you shown), then you can delete

NOTE
Also, deleting array elements in the middle of an array will not shift the index of the elements after them down. Use splice for that.


Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
  • Comment on Re: Array index move into another array