range
range
(PHP 4, PHP 5, PHP 7)
range — Create an array containing a range of elements
Description
array range ( mixed $start , mixed $end [, number $step = 1 ] )
Create an array containing a range of elements.
Parameters
-
start
-
First value of the sequence.
-
end
-
The sequence is ended upon reaching the
end
value. -
step