Flow PHP

NumberSequenceGenerator implements SequenceGenerator

Read onlyYes
FinalYes

Interfaces

SequenceGenerator

Methods

__construct()  : mixed
generate()  : Generator<string|int, mixed>
rows()  : Cardinality
Integer bounds with a positive step no wider than the span are counted arithmetically; everything else counts the same range() generate() walks, because PHP rounds float ranges its own way and throws on a step that does not fit - a formula would diverge from what extract() yields.

Methods

__construct()

public __construct(string|int|float $start, string|int|float $end[, int|float $step = 1 ]) : mixed
Parameters
$start : string|int|float
$end : string|int|float
$step : int|float = 1

generate()

public generate() : Generator<string|int, mixed>
Return values
Generator<string|int, mixed>

rows()

Integer bounds with a positive step no wider than the span are counted arithmetically; everything else counts the same range() generate() walks, because PHP rounds float ranges its own way and throws on a step that does not fit - a formula would diverge from what extract() yields.

public rows() : Cardinality
Return values
Cardinality
On this page

Search results