PHP Tutorial ArrayObject
Update
- Appends the value with ArrayObject::append in PHP
- Exchange the array for another one with ArrayObject::exchangeArray in PHP
- Set the behavior flags with ArrayObject::setFlags in PHP
- Set the iterator classname for the ArrayObject from ArrayObject::setIteratorClass in PHP
- Unsets the value at the specified index with ArrayObject::offsetUnset in PHP
Array Object
- Check if requested index exists in an array ArrayObject::offsetExists in PHP
- Check whether array contains more entries with ArrayIterator::valid in PHP
- Serialize an ArrayObject with ArrayObject::serialize in PHP
Create
- Construct a new array object with ArrayObject::__construct from array in PHP
- Create a copy of the ArrayObject with ArrayObject::getArrayCopy in PHP
- Create a new iterator from an ArrayObject instance with ArrayObject::getIterator in PHP
Loop
- Get current array entry with ArrayIterator::current in PHP
- Get current array key with ArrayIterator::key in PHP
- Move to next entry with ArrayIterator::next in PHP
- Rewind array back to the start with ArrayIterator::rewind in PHP
Get
- Get the behavior flags with ArrayObject::getFlags in PHP
- Get the iterator classname for the ArrayObject with ArrayObject::getIteratorClass in PHP
- Get the number of public properties in the ArrayObject in PHP
Sort
- Sort an array using a case insensitive " natural order " algorithm with ArrayObject::natcasesort in PHP
- Sort array with a user-defined function and maintain key association with ArrayObject::uasort in PHP
- Sort entries using a " natural order " algorithm with ArrayObject::natsort in PHP
- Sort the entries by key with ArrayObject::ksort in PHP
- Sort the entries by keys using a user-defined comparison function with ArrayObject::uksort in PHP
- Sort the entries by value with ArrayObject::asort in PHP