range() returns an array of elements from low to high, inclusive. If low > high, the sequence will be from high to low.
Note: Prior to version 4.0.7 the range() function only generated incrementing integer arrays. Support for character sequences and decrementing arrays was added in 4.0.7.
See shuffle() for another example of its use.