HH\KeyedIterator

The HH\KeyedIterator<Tk, Tv> interface

If a class implements KeyedIterator, then it provides the infrastructure to be iterated over using a foreach loop.

Interface synopsis

interface KeyedIterator implements KeyedTraversable, Iterator {...}
  • ->key(): Tk
    Return the current key at the current iterator position