The range() function used for create an array containing a range of elements.
Syntax
range(start,end,step)
Example
$num = range(2,5);
print_r ($num);
Output
Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 5 )
Copyright ©2022 coderraj.com. All Rights Reserved.