class Iterator implements Iterator

Iterate through child nodes

Methods

__construct(JsonBrowser $browser)

Create a new instance

current()

Get a browser object for the current child

mixed
key()

Get the current child index

next()

Advance the internal pointer to the next child

rewind()

Reset the internal pointer to the first child

bool
valid()

Test whether there are more children to iterate over

Details

at line 30
__construct(JsonBrowser $browser)

Create a new instance

Parameters

JsonBrowser $browser

at line 49
JsonBrowser current()

Get a browser object for the current child

Return Value

JsonBrowser

at line 61
mixed key()

Get the current child index

Return Value

mixed

at line 72
next()

Advance the internal pointer to the next child

at line 83
rewind()

Reset the internal pointer to the first child

at line 95
bool valid()

Test whether there are more children to iterate over

Return Value

bool