|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __construct ($array, $flags=0, $iterator_class="ArrayIterator") | |
| append ($value) | |
| asort () | |
| count () | |
| exchangeArray ($array) | |
| getArrayCopy () | |
| getFlags () | |
| getIterator () | |
| getIteratorClass () | |
| ksort () | |
| natcasesort () | |
| natsort () | |
| offsetExists ($index) | |
| offsetGet ($index) | |
| offsetSet ($index, $newval) | |
| offsetUnset ($index) | |
| setFlags ($flags) | |
| setIteratorClass ($itertor_class) | |
| uasort (mixed cmp_function) | |
| uksort (mixed cmp_function) | |
Public Attributes | |
| const | ARRAY_AS_PROPS = 0x00000002 |
| const | STD_PROP_LIST = 0x00000001 |
An Array wrapper.
This array wrapper allows to recursively iterate over Arrays and public Object properties.
| ArrayObject::__construct | ( | $array, | |
$flags = 0, |
|||
$iterator_class = "ArrayIterator" |
|||
| ) |
Construct a new array iterator from anything that has a hash table.
That is any Array or Object.
| $array | the array to use. |
| $flags | see setFlags(). |
| $iterator_class | class used in getIterator() |
| ArrayObject::append | ( | $value | ) |
| $value | is appended as last element |
| ArrayObject::count | ( | ) |
| ArrayObject::exchangeArray | ( | $array | ) |
| ArrayObject::getArrayCopy | ( | ) |
| ArrayObject::getIterator | ( | ) |
Implements IteratorAggregate.
| ArrayObject::natcasesort | ( | ) |
| ArrayObject::natsort | ( | ) |
| ArrayObject::offsetExists | ( | $index | ) |
| ArrayObject::offsetGet | ( | $index | ) |
| ArrayObject::offsetSet | ( | $index, | |
| $newval | |||
| ) |
| $index | index to set |
| $newval | new value to store at offset $index |
Implements ArrayAccess.
| ArrayObject::offsetUnset | ( | $index | ) |
| $index | offset to unset |
Implements ArrayAccess.
| ArrayObject::setFlags | ( | $flags | ) |
| ArrayObject::uasort | ( | mixed | cmp_function | ) |
| ArrayObject::uksort | ( | mixed | cmp_function | ) |
| const ArrayObject::ARRAY_AS_PROPS = 0x00000002 |
| const ArrayObject::STD_PROP_LIST = 0x00000001 |
1.8.5