The Range of Numbers in PHP
In PHP, the range of numbers
is obtained using the range function.
See the example:
<?php
$arr = range(1, 5);
var_dump($arr);
?>
Code execution result:
[1, 2, 3, 4, 5]
In PHP, the range of numbers
is obtained using the range function.
See the example:
<?php
$arr = range(1, 5);
var_dump($arr);
?>
Code execution result:
[1, 2, 3, 4, 5]