in reply to array manipulation
Tutorials -> Arrays: A Tutorial/Reference
Also, use Super Search on "splice" to find many other examples of how others use this built-in function.