In PHP4:
check out the php manual for array_splice():
-- quote --
If offset and length are such that nothing is removed,
then the elements from the replacement array are inserted in the place specified by the offset. Tip: if the replacement is just one element it is not necessary to put
array() around it, unless the element is an array itself.
-- end quote --