ArrayIterator::__construct

(PHP 5 >= 5.0.0, PHP 7) Construct an ArrayIterator public ArrayIterator::__construct ([ mixed $array = array() [, int $flags = 0 ]] ) Constructs an ArrayIterator object. Parameters: array The array or object to be iterated on. flags Flags to control the behaviour of the ArrayIterator object. See ArrayIterator::setFlags().

ArrayIterator::append

(PHP 5 >= 5.0.0, PHP 7) Append an element public void ArrayIterator::append ( mixed $value ) Appends value as the last element. Parameters: value The value to append. Returns: No value is returned. This function is currently not documented; only its argument list is available.

ArrayIterator::asort

(PHP 5 >= 5.2.0, PHP 7) Sort array by values public void ArrayIterator::asort ( void ) Sorts an array by values. Returns: No value is returned. This function is currently not documented; only its argument list is available. See also: ArrayIterator::ksort() -

AppendIterator::valid

(PHP 5 >= 5.1.0, PHP 7) Checks validity of the current element public bool AppendIterator::valid ( void ) Checks validity of the current element. Returns: Returns TRUE if the current iteration is valid, FALSE otherwise. See also: AppendIterator::current() - AppendIterator::key() -

AppendIterator::getIteratorIndex

(PHP 5 >= 5.1.0, PHP 7) Gets an index of iterators public int AppendIterator::getIteratorIndex ( void ) Gets the index of the current inner iterator. Returns: Returns an integer, which is the zero-based index of the current inner iterator. Examples: AppendIterator.getIteratorIndex() basic example <?php $array_a = ne

AppendIterator::getInnerIterator

(PHP 5 >= 5.1.0, PHP 7) Gets the inner iterator public Iterator AppendIterator::getInnerIterator ( void ) This method returns the current inner iterator. Returns: The current inner iterator, or NULL if there is not one. Examples: AppendIterator::getInnerIterator() example <?php $array_a = new ArrayIterator(array('a'

AppendIterator::getArrayIterator

(PHP 5 >= 5.1.0, PHP 7) Gets the ArrayIterator public void AppendIterator::getArrayIterator ( void ) This method gets the ArrayIterator that is used to store the iterators added with AppendIterator::append(). Returns: Returns an ArrayIterator containing the appended iterators. See also: AppendIterator::getIn

AppendIterator::current

(PHP 5 >= 5.1.0, PHP 7) Gets the current value public mixed AppendIterator::current ( void ) Gets the current value. Returns: The current value if it is valid or NULL otherwise. See also: Iterator::current() - AppendIterator::key() - AppendIterator::valid(

AppendIterator::key

(PHP 5 >= 5.1.0, PHP 7) Gets the current key public scalar AppendIterator::key ( void ) Get the current key. Returns: The current key if it is valid or NULL otherwise. Examples: AppendIterator::key() basic example <?php $array_a = new ArrayIterator(array('a' => 'aardwolf', 'b' => 'bear', 'c' => 'capybara')

AppendIterator::__construct

(PHP 5 >= 5.1.0, PHP 7) Constructs an AppendIterator public AppendIterator::__construct ( void ) Constructs an AppendIterator. Returns: No value is returned. Examples: Iterating AppendIterator with foreach <?php $pizzas   = new ArrayIterator(array('Margarita', 'Siciliana', 'Hawaii')); $toppings = new ArrayIterator(array('Cheese', 'A