class Iterator implements Iterator, ArrayAccess, Countable (View source)

Methods

__construct()

No description

__destruct()

No description

void
rewind()

Rewind the Iterator to the first element

void
next()

Move forward to next element

TValue
current()

No description

TKey|null
key()

No description

bool
valid()

Checks if current position is valid

int<0, max>
count()

Count elements of an object

bool
offsetExists($fd)

Whether a offset exists

TValue
offsetGet(mixed $fd)

No description

void
offsetSet($fd, TValue $value)

Offset to set

void
offsetUnset($fd)

Offset to unset

Details

__construct()

No description

__destruct()

No description

void rewind()

Rewind the Iterator to the first element

Return Value

void

Any returned value is ignored.

void next()

Move forward to next element

Return Value

void

Any returned value is ignored.

TValue current()

No description

Return Value

TValue

Can return any type.

TKey|null key()

No description

Return Value

TKey|null

TKey on success, or null on failure.

bool valid()

Checks if current position is valid

Return Value

bool

The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

int<0, max> count()

Count elements of an object

Return Value

int<0, max>

The custom count as an integer.

The return value is cast to an integer.

bool offsetExists($fd)

Whether a offset exists

Parameters

$fd

Return Value

bool

true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

TValue offsetGet(mixed $fd)

No description

Parameters

mixed $fd

Return Value

TValue

Can return all value types.

void offsetSet($fd, TValue $value)

Offset to set

Parameters

$fd
TValue $value

The value to set.

Return Value

void

void offsetUnset($fd)

Offset to unset

Parameters

$fd

Return Value

void