ArrayObject::offsetExists

(PHP 5 >= 5.0.0, PHP 7) Returns whether the requested index exists public bool ArrayObject::offsetExists ( mixed $index ) Parameters: index The index being checked. Returns: TRUE if the requested index exists, otherwise FALSE Examples: ArrayObject::offsetExists() example

ArrayObject::offsetGet

(PHP 5 >= 5.0.0, PHP 7) Returns the value at the specified index public mixed ArrayObject::offsetGet ( mixed $index ) Parameters: index The index with the value. Returns: The value at the specified index or NULL. Exception: Produces an E_NOTICE error message when the specified index does not exist.

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::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::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::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::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

SplFileObject::__toString

(PHP 5 >= 5.1.0, PHP 7) Alias of SplFileObject::current() public void SplFileObject::__toString ( void ) This method is an alias of SplFileObject::current().