\Iterator

Synopsis

interface Iterator extends Traversable {
  • // methods
  • public mixed current()
  • public scalar key()
  • public void next()
  • public void rewind()
  • public boolean valid()
}

Hierarchy

Methods

public

  • current() — Return the current element
  • key() — Return the key of the current element
  • rewind() — Rewind the Iterator to the first element
  • valid() — Checks if current position is valid