BlueSpice MediaWiki master
|
Public Member Functions | |
__construct ($array=array(), $flags=0) | |
offsetExists ($index) | |
offsetGet ($index) | |
offsetSet ($index, $newval) | |
offsetUnset ($index) | |
append ($value) | |
getArrayCopy () | |
count () | |
getFlags () | |
setFlags ($flags) | |
asort () | |
ksort () | |
uasort ($cmp_function) | |
uksort ($cmp_function) | |
natsort () | |
natcasesort () | |
unserialize ($serialized) | |
serialize () | |
rewind () | |
current () | |
key () | |
next () | |
valid () | |
seek ($position) | |
Public Attributes | |
const | STD_PROP_LIST = 1 |
const | ARRAY_AS_PROPS = 2 |
This iterator allows to unset and modify values and keys while iterating over Arrays and Objects. http://php.net/manual/en/class.arrayiterator.php
ArrayIterator::__construct | ( | $array = array() , |
|
$flags = 0 |
|||
) |
ArrayIterator::append | ( | $value | ) |
ArrayIterator::asort | ( | ) |
Sort array by values void 5.2.0
ArrayIterator::count | ( | ) |
Count elements int The number of elements or public properties in the associated array or object, respectively. 5.0.0
Implements Countable.
ArrayIterator::current | ( | ) |
Return current array entry mixed The current array entry. 5.0.0
Implements Iterator.
ArrayIterator::getArrayCopy | ( | ) |
ArrayIterator::getFlags | ( | ) |
Get flags string The current flags. 5.1.0
ArrayIterator::key | ( | ) |
Return current array key mixed The current array key. 5.0.0
Implements Iterator.
ArrayIterator::ksort | ( | ) |
Sort array by keys void 5.2.0
ArrayIterator::natcasesort | ( | ) |
Sort an array naturally, case insensitive void 5.2.0
ArrayIterator::natsort | ( | ) |
Sort an array naturally void 5.2.0
ArrayIterator::next | ( | ) |
Move to next entry void 5.0.0
Implements Iterator.
ArrayIterator::offsetExists | ( | $index | ) |
Check if offset exists string $index The offset being checked.
Implements ArrayAccess.
ArrayIterator::offsetGet | ( | $index | ) |
Get value for an offset string $index The offset to get the value from.
Implements ArrayAccess.
ArrayIterator::offsetSet | ( | $index, | |
$newval | |||
) |
Set value for an offset string $index The index to set for.
string | $newval |
The new value to store at the index.
Implements ArrayAccess.
ArrayIterator::offsetUnset | ( | $index | ) |
Unset value for an offset string $index The offset to unset.
Implements ArrayAccess.
ArrayIterator::rewind | ( | ) |
Rewind array back to the start void 5.0.0
Implements Iterator.
ArrayIterator::seek | ( | $position | ) |
Seek to position int $position The position to seek to.
Implements SeekableIterator.
ArrayIterator::serialize | ( | ) |
Serialize string The serialized ArrayIterator. 5.3.0
Implements Serializable.
ArrayIterator::setFlags | ( | $flags | ) |
Set behaviour flags string $flags A bitmask as follows: 0 = Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.). 1 = Array indices can be accessed as properties in read/write.
ArrayIterator::uasort | ( | $cmp_function | ) |
User defined sort string $cmp_function The compare function used for the sort.
ArrayIterator::uksort | ( | $cmp_function | ) |
User defined sort string $cmp_function The compare function used for the sort.
ArrayIterator::unserialize | ( | $serialized | ) |
Unserialize string $serialized The serialized ArrayIterator object to be unserialized.
Implements Serializable.
ArrayIterator::valid | ( | ) |
Check whether array contains more entries bool 5.0.0
Implements Iterator.