range
range — Create an array containing a range of elements.Description
range( string|int|float $start, string|int|float $end, int|float $step = 1 ): arrayCreate an array containing a range of elements.
Parameters
start
First value of the sequence.
end
The sequence is ended upon reaching the end value.
step
If a step value is given, it will be used as the increment between elements in the sequence. step should be given as a positive number. If not specified, step will default to 1.
Return Values
Returns an array of elements from start to end, inclusive.More information about range on official PHP documentation site
range - Popular snippets
- PHP 8.0 / MySQL 5.7 implode array_filter preg_match array_map strlen range
last run:
2021-05-02 20:42:52
16
- PHP 5 / MySQL 5.7 range count
last run:
2021-07-15 11:46:34
4
- PHP 8.0 / MySQL 5.7 range print_r
last run:
2021-10-10 18:36:22
3
- PHP 8.0 / MySQL 5.7 range array_map array_slice print_r
last run:
2021-08-19 23:26:01
3
- PHP 8.0 / MySQL 5.7 range count
last run:
2021-07-15 11:46:27
3
- PHP 7 / MySQL 5.7 range count
last run:
2021-07-15 11:46:32
3
- PHP 8.1 / MySQL 5.7 date strtotime range count print_r
last run:
2022-05-17 15:43:45
2
- PHP 8.0 / MySQL 5.7 range printf
last run:
2021-08-18 11:06:00
2
- PHP 8.0 / MySQL 5.7 range printf
last run:
2021-07-13 13:35:46
2
- PHP 5 / MySQL 5.7 range count
last run:
2021-07-11 21:41:50
2
range - New snippets
-
PHP 8.1 / MySQL 5.7 date strtotime range count print_r
added at:
2022-05-17 15:38:27
2
-
PHP 8.1 / MySQL 5.7 date strtotime range count print_r
added at:
2022-05-17 15:38:07
1
-
PHP 8.1 / MySQL 5.7 date strtotime range count print_r
added at:
2022-05-17 15:37:43
1
-
PHP 8.1 / MySQL 5.7 date strtotime range count print_r
added at:
2022-05-17 15:37:13
1
-
PHP 8.0 / MySQL 5.7 range print_r
added at:
2022-04-29 09:53:10
1
-
PHP 8.0 / MySQL 5.7 print_r range
added at:
2022-04-29 09:51:48
1
-
PHP 8.0 / MySQL 5.7 range array_splice implode array_slice range array_splice implode array_slice
added at:
2022-04-22 20:47:16
1
-
PHP 7 / MySQL 5.7 range print_r
added at:
2021-09-17 03:14:17
1
-
PHP 8.0 / MySQL 5.7 range print_r
added at:
2021-09-17 03:14:08
1