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.1 / PostgreSQL 10 Bookings (ReadOnly) range array_merge shuffle join print_r
last run:
2024-07-06 17:00:18
10
- PHP 8.0 / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:13:11
5
- PHP 8.3 / MySQL 8.0 microtime range array_merge
last run:
2025-05-02 08:13:52
4
- PHP 8.2 / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:15:48
4
- PHP 8.3 / MySQL 8.0 microtime range array_merge
last run:
2025-05-02 08:13:41
3
- PHP 8.3 / MySQL 8.0 microtime range array_merge
last run:
2025-05-02 08:12:59
3
- PHP 7.4 / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:15:35
3
- PHP 8.3 / MySQL 8.0 range array_merge abs min
last run:
2025-05-02 08:13:04
2
- / MySQL 8.0 memory_get_usage range printf
last run:
2023-08-16 11:14:04
2
- PHP 8.1 / MySQL 8.0 range explode
last run:
2022-12-23 16:45:47
2
range - New snippets
-
PHP 8.4 / MySQL 8.0 range count array_splice intval readline
added at:
2025-06-28 03:15:39
1
-
PHP 8.4 / MySQL 8.0 range chr preg_match
added at:
2025-05-29 11:03:51
1
-
PHP 8.4 / MySQL 8.0 range count array_splice readline
added at:
2025-05-26 06:31:56
1
-
PHP 8.3 / MySQL 8.0 microtime range array_merge
added at:
2025-05-02 08:13:46
4
-
PHP 8.3 / MySQL 8.0 microtime range array_merge
added at:
2025-05-02 08:13:35
3
-
PHP 8.3 / MySQL 8.0 range array_merge abs min
added at:
2025-05-02 08:13:29
1
-
PHP 8.3 / MySQL 8.0 microtime range array_merge
added at:
2025-05-02 08:13:10
1
-
PHP 8.3 / MySQL 8.0 microtime range array_merge
added at:
2025-05-02 08:11:42
3
-
PHP 8.3 / MySQL 8.0 range array_merge abs min range array_merge abs min
added at:
2025-05-02 08:11:33
2