← All docs

range()

Create an array containing a range of elements.

range()

function range(mixed $start, mixed $end): array

Create an array containing a range of elements.

Parameters:

  • $start (mixed)
  • $end (mixed)

Returns: array

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how range is implemented in the compiler, see the internals page.