range( ) function creates an array of numbers between a low value and a high value.
Get an array of the sequential numbers between 1 and 40 (inclusive) <? $numbers = range(1,40); print_r($numbers); ?>