Documentation

ArrayListIterator
in package
implements Iterator

Array list iterator

Table of Contents

Interfaces

Iterator

Properties

$_class  : IteratorAggregate|null
Iterator data
$_current  : int
Current position

Methods

__construct()  : mixed
Constructor
current()  : mixed
Returns item on current position
key()  : int
Returns key (index) on current position
next()  : mixed
Returns next item and moves internal position
rewind()  : mixed
Rewinds an iterator to the first item
valid()  : bool
Check if the current position is valid

Properties

Methods

__construct()

Constructor

public __construct([IteratorAggregate $class = null ]) : mixed
Parameters
$class : IteratorAggregate = null

current()

Returns item on current position

public current() : mixed
Tags
suppress

PHP0418

key()

Returns key (index) on current position

public key() : int
Return values
int

next()

Returns next item and moves internal position

public next() : mixed
Tags
suppress

PHP0418

valid()

Check if the current position is valid

public valid() : bool
Tags
suppress

PHP0418

Return values
bool

        
On this page

Search results