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

mixed
current()

No description

mixed
key()

No description

bool
valid()

Checks if current position is valid

int
count()

Count elements of an object

bool
offsetExists($fd)

Whether a offset exists

mixed
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.

mixed current()

No description

Return Value

mixed

Can return any type.

mixed key()

No description

Return Value

mixed

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 count()

Count elements of an object

Return Value

int

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.

mixed offsetGet(mixed $fd)

No description

Parameters

mixed $fd

Return Value

mixed

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