range

It can be used to create an array containing a range of elements

Example

<?php
echo “<pre>”;
$array = range(3, 7);
print_r($array);
?>

Output

Array
(
[0] => 3
[1] => 4
[2] => 5
[3] => 6
[4] => 7
)