ArrayObject::offsetGet

Returns the value at the specified index

&reftitle.description; public `mixed` `ArrayObject::offsetGet` `mixed` `index`
&reftitle.parameters;

`index`

- The index with the value.

&reftitle.returnvalues;

The value at the specified index or &null;.

&reftitle.errors;

Produces an `E_NOTICE` error message when the specified index does not exist.

&reftitle.examples;

### `ArrayObject::offsetGet` example

    <?php
    $arrayobj = new ArrayObject(array('zero', 7, 'example'=>'e.g.'));
    var_dump($arrayobj->offsetGet(1));
    var_dump($arrayobj->offsetGet('example'));
    var_dump($arrayobj->offsetExists('notfound'));
    ?>

&example.outputs;

    int(7)
    string(4) "e.g."
    bool(false)