Sequence

Type
Class
Namespace
craft\helpers
Inherits
craft\helpers\Sequence
Since
3.0.31

Class Sequence

View source (opens new window)

# Public Methods

Method Description
current() Returns the current value in a given sequence.
next() Returns the next number in a given sequence.

# current()

Since
3.0.32

Returns the current value in a given sequence.

View source (opens new window)

Arguments

Returns

integer (opens new window), string (opens new window)

# next()

Returns the next number in a given sequence.

View source (opens new window)

Arguments

Returns

integer (opens new window), string (opens new window)

Throws