You have a set of comma-delimited data, not a two-dimensional array. If I had to make a completely wild guess based on your example, it appears you want to simply remove an element from the outside array. In that case, splice behaves exactly as you would expect.