-
Notifications
You must be signed in to change notification settings - Fork 14
range
Chung Leong edited this page Jan 10, 2022
·
3 revisions
range - Create an array containing a range of elements
array range( number $start, number $end [, number $step ] )
range() creates an array containing a range of elements.
start - First value of the sequence.
end - The sequence is ended upon reaching the end value.
step - If a step value is given, it will be used as the increment between elements in the sequence. step should be given as a positive number. If not specified, step will default to 1.
An array of elements from start to end, inclusive.
1.4 and above.