With use of range() function , it creates the array contains the range of an element.
It will return an array of element from low to high.
Syntax :
range(low,high,step)
Example :
<?php
$number = range(0,50,10);
print_r ($number);
?>
Output:
Array ( [0] => 0 [1] => 10 [2] => 20 [3] => 30 [4] => 40 [5] => 50 )
0 Comment(s)