PHP funkce range()
Dostupnost ve verzích: PHP 4.0
Create an array containing a range of elements
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$low |
mixed |
není | Low value. |
$high |
mixed |
není | High value. |
$step |
number |
null | 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. |
Návratové hodnoty
array
an array of elements from low to high, inclusive. If low > high, the sequence will be from high to low.