SPL-StandardPHPLibrary
Public Member Functions | List of all members
ArrayAccess Interface Reference
Inheritance diagram for ArrayAccess:
Inheritance graph
Collaboration diagram for ArrayAccess:
Collaboration graph

Public Member Functions

 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Detailed Description

Interface to override array access of objects.

Since
PHP 5.0

Definition at line 486 of file spl.php.

Member Function Documentation

ArrayAccess::offsetExists (   $offset)
Parameters
$offsetto check
Returns
whether the offset exists.

Implemented in ArrayIterator, ArrayObject, SplDoublyLinkedList, and DbaArray.

ArrayAccess::offsetGet (   $offset)
Parameters
$offsetto retrieve
Returns
value at given offset

Implemented in ArrayIterator, ArrayObject, SplDoublyLinkedList, SplObjectStorage, and DbaArray.

ArrayAccess::offsetSet (   $offset,
  $value 
)
Parameters
$offsetto modify
$valuenew value

Implemented in ArrayIterator, ArrayObject, SplDoublyLinkedList, SplObjectStorage, and DbaArray.

ArrayAccess::offsetUnset (   $offset)
Parameters
$offsetto delete

Implemented in ArrayIterator, ArrayObject, SplDoublyLinkedList, SplObjectStorage, and DbaArray.


The documentation for this interface was generated from the following file: