Since: 8.4

class NodeList implements IteratorAggregate, Countable (View source)

Properties

int $length

Methods

int
count()

Count elements of an object

getIterator()

No description

Node|null
item(int $index)

No description

Details

int count()

Count elements of an object

Return Value

int

The custom count as an integer.

The return value is cast to an integer.

Traversable getIterator()

No description

Return Value

Traversable

An instance of an object implementing Iterator or Traversable

Node|null item(int $index)

No description

Parameters

int $index

Return Value

Node|null