Array Splice Associative

Sometimes I want to put an array into another array at a certain position. array_splice works for regular arrays, but does not keep the keys. Here is a function that will work like array splice, BUT it will maintain the keys.