ArrayObject::offsetGet
Returns the value at the specified index
&reftitle.description;
public mixedArrayObject::offsetGet
mixedkey
&reftitle.parameters;
key
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
'e.g.'));
var_dump($arrayobj->offsetGet(1));
var_dump($arrayobj->offsetGet('example'));
var_dump($arrayobj->offsetExists('notfound'));
?>
]]>
&example.outputs;