All Functions

range - range of numbers

The range function allows to return an value that increments with each iteration and restarts when a certain limit is reached.

When the $maximum range value has been reached the value will start again at $minimum.

Usage(s)

range ( $minimum , $maximum ) Returns an incremented value with ech iteration in the range Minimum to Maximum

Parameter(s)

$minimum the initial start value for the increment value, and the return value when $maximum has been reached
$maximum the highest value allowed in the range of numbers

Example(s)

A recurring range of incremental values

fname() - Birthdate: range(79,92)

Varvara - Birthdate: 79
Soussana - Birthdate: 80
Juan - Birthdate: 81
Mariam - Birthdate: 82
Karolína - Birthdate: 83
Mari - Birthdate: 84
Miranda - Birthdate: 85
Zuzanna - Birthdate: 86
Marie - Birthdate: 87
Fajr - Birthdate: 88
Johanna - Birthdate: 89
George - Birthdate: 90
Ebba - Birthdate: 91
Natálie - Birthdate: 92 <-- $maximum has been reached here
Katrina - Birthdate: 79 <-- restart at $minimum
Lilja - Birthdate: 80
Gergana - Birthdate: 81
Mariya - Birthdate: 82
Fatma - Birthdate: 83
Barbare - Birthdate: 84
Peng - Birthdate: 85

See also

int - number list - custom list increment - incremental value