\ArrayIterator
Synopsis
class ArrayIterator
implements
ArrayAccess
{
- // constants
- const = 1;
- const = 2;
- // methods
- public void append()
- public void asort()
- public void __construct()
- public int count()
- public mixed current()
- public array getArrayCopy()
- public void getFlags()
- public mixed key()
- public void ksort()
- public void natcasesort()
- public void natsort()
- public void next()
- public bool offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public void rewind()
- public void seek()
- public string serialize()
- public void setFlags()
- public void uasort()
- public void uksort()
- public string unserialize()
- public bool valid()
Hierarchy
Implements
Constants
Name | Value |
---|---|
1 | |
2 |
Methods
public
- __construct() — Construct an ArrayIterator
- append() — Append an element
- asort() — Sort array by values
- count() — Count elements
- current() — Return current array entry
- getArrayCopy() — Get array copy
- getFlags() — Get behavior flags
- key() — Return current array key
- ksort() — Sort array by keys
- natcasesort() — Sort an array naturally, case insensitive
- natsort() — Sort an array naturally
- next() — Move to next entry
- offsetExists() — Check if offset exists
- offsetGet() — Get value for an offset
- offsetSet() — Set value for an offset
- offsetUnset() — Unset value for an offset
- rewind() — Rewind array back to the start
- seek() — Seek to position
- serialize() — Serialize
- setFlags() — Set behaviour flags
- uasort() — Sort with a user-defined comparison function and maintain index association
- uksort() — Sort by keys using a user-defined comparison function
- unserialize() — Unserialize
- valid() — Check whether array contains more entries