if suppose I could do this with a "for" loop, but I am wondering if there is a more graceful alternative. I want to create array of a containing a range of DIFFERENT numbers; for the sake of this example lets say 1-10, when i use "range(1,10)" it creates an array with the desired range but it starts with the key "0"
example:
$variable[0]=1;
$variable[1]=2;
...
$variable[9]=10;
is there a way to do this, (without using a "for" loop) where I can chose what key the range starts?
example:
$variable[x]=1;
$variable[x+1]=2;
...
$variable[X+9]=10;









Bookmarks