ArrayIterator::valid
ArrayObject::append
SPL
PHP Manual

# The ArrayObject class

## Introduction

...

## Class synopsis

ArrayObject
class ArrayObject implements IteratorAggregate , Traversable , ArrayAccess , Countable {
/* Methods */
__construct ( mixed `$input` )
void append ( mixed `$newval` )
int count ( void )
ArrayIterator getIterator ( void )
bool offsetExists ( mixed `$index` )
mixed offsetGet ( mixed `$index` )
void offsetSet ( mixed `$index` , mixed `$newval` )
void offsetUnset ( mixed `$index` )
}

## Table of Contents

- ArrayObject::append — Appends the value
- ArrayObject::__construct — Construct a new array object
- ArrayObject::count — Get the number of elements in the Iterator
- ArrayObject::getIterator — Create a new iterator from an ArrayObject instance
- ArrayObject::offsetExists — Returns whether the requested $index exists
- ArrayObject::offsetGet — Returns the value at the specified $index
- ArrayObject::offsetSet — Sets the value at the specified $index to $newval
- ArrayObject::offsetUnset — Unsets the value at the specified $index

ArrayIterator::valid
ArrayObject::append
SPL
PHP Manual