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 8.0 / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:13:11
5
- PHP 8.2.3 / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:15:48
4
- PHP 8.0 / MySQL 5.7 range print_r
last run:
2023-09-13 16:17:36
4
- PHP 5.6 / MySQL 5.7 range count
last run:
2021-07-15 11:46:34
4
- PHP 7.4 / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:15:35
3
- PHP 8.1 / MySQL 5.7 shuffle range var_dump
last run:
2023-07-28 07:59:51
3
- PHP 8.1 / MySQL 5.7 range print_r
last run:
2023-07-11 10:13:12
3
- PHP 8.1 / MySQL 5.7 range
last run:
2022-08-23 12:35:47
3
- PHP 8.0 / MySQL 5.7 range array_splice implode array_slice
last run:
2022-12-20 15:20:17
3
range - New snippets
-
PHP 8.1 / MySQL 5.7 range str_repeat count array_merge
added at:
2023-08-30 13:54:20
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count array_merge
added at:
2023-08-30 13:48:41
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count array_merge
added at:
2023-08-30 13:48:23
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count array_merge
added at:
2023-08-30 13:43:30
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count array_merge
added at:
2023-08-30 13:42:38
1
-
PHP 8.1 / MySQL 5.7 range str_repeat count array_merge
added at:
2023-08-30 13:42:31
1
-
PHP 8.1 / MySQL 5.7 range memory_get_peak_usage range memory_get_peak_usage
added at:
2023-08-30 12:49:33
1
-
PHP 8.1 / MySQL 8.0 memory_get_usage range printf
added at:
2023-08-16 11:13:26
1
-
PHP 8.2.3 / MySQL 8.0 memory_get_usage range printf
added at:
2023-08-16 11:13:20
4