ArrayObject::ksort

(PHP 5 >= 5.2.0, PHP 7) Sort the entries by key public void ArrayObject::ksort ( void ) Sorts the entries by key, maintaining key to entry correlations. This is useful mainly for associative arrays. Returns: No value is returned. Examples: ArrayObject::ksort() example <?php $fruits = array("d" => "lemon", "a" =&

ArrayObject::getIteratorClass

(PHP 5 >= 5.1.0, PHP 7) Gets the iterator classname for the ArrayObject. public string ArrayObject::getIteratorClass ( void ) Gets the class name of the array iterator that is used by ArrayObject::getIterator(). Returns: Returns the iterator class name that is used to iterate over this object. Examples: ArrayObject::getIteratorClass

ArrayObject::getIterator

(PHP 5 >= 5.0.0, PHP 7) Create a new iterator from an ArrayObject instance public ArrayIterator ArrayObject::getIterator ( void ) Create a new iterator from an ArrayObject instance. Returns: An iterator from an ArrayObject. Examples: ArrayObject::getIterator() example <?php $array = array('1' => 'one',           

ArrayObject::getFlags

(PHP 5 >= 5.1.0, PHP 7) Gets the behavior flags. public int ArrayObject::getFlags ( void ) Gets the behavior flags of the ArrayObject. See the ArrayObject::setFlags method for a list of the available flags. Returns: Returns the behavior flags of the ArrayObject. Examples: ArrayObject::getFlags() example <?php // Arr

ArrayObject::getArrayCopy

(PHP 5 >= 5.0.0, PHP 7) Creates a copy of the ArrayObject. public array ArrayObject::getArrayCopy ( void ) Exports the ArrayObject to an array. Returns: Returns a copy of the array. When the ArrayObject refers to an object an array of the public properties of that object will be returned. Examples: ArrayObject::getArrayCopy() exampl

ArrayObject::exchangeArray

(PHP 5 >= 5.1.0, PHP 7) Exchange the array for another one. public array ArrayObject::exchangeArray ( mixed $input ) Exchange the current array with another array or object. Parameters: input The new array or object to exchange with the current array. Returns: Returns the old array. Examples:

ArrayObject::count

(PHP 5 >= 5.0.0, PHP 7) Get the number of public properties in the ArrayObject public int ArrayObject::count ( void ) Get the number of public properties in the ArrayObject. Returns: The number of public properties in the ArrayObject. Note: When the ArrayObject is constructed from an array all properties are public. Examples: A

ArrayObject::__construct

(PHP 5 >= 5.0.0, PHP 7) Construct a new array object public ArrayObject::__construct ([ mixed $input = [] [, int $flags = 0 [, string $iterator_class = "ArrayIterator" ]]] ) This constructs a new array object. Parameters: input The input parameter accepts an array or an Object. flags Flags to control the behaviour of the ArrayObject object. See Array

ArrayObject::asort

(PHP 5 >= 5.2.0, PHP 7) Sort the entries by value public void ArrayObject::asort ( void ) Sorts the entries such that the keys maintain their correlation with the entries they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Returns: No value is returned. Examples:

ArrayObject::append

(PHP 5 >= 5.0.0, PHP 7) Appends the value public void ArrayObject::append ( mixed $value ) Appends a new value as the last element. Note: This method cannot be called when the ArrayObject was constructed from an object. Use ArrayObject::offsetSet() instead. Parameters: value The value being appended. Returns: No value is returned.