<?php
// range($start, $end [,$steps])
$numbers = range(0, 5);
print_r($numbers);
// Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 )
$numbers2 = range(0, 5, 2);
print_r($numbers2);
//Array ( [0] => 0 [1] => 2 [2] => 4 )
?>