In an array with keys 1 through 10, is there an easy way to shift the keys so that they start with 0 instead of 1? i.e: the array with 1-10 keys would end up with keys 0 through 9.
Right now I did this using:
array_combine(array(0,1,2,3,4,5,6,7,8,9), $myArray) ;
But I am sure here must be a better solution. Any ideas?