You are here

public function ArrayObject::offsetGet in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/ArrayObject.php \Zend\Stdlib\ArrayObject::offsetGet()

Returns the value at the specified key

Parameters

mixed $key:

Return value

mixed

1 call to ArrayObject::offsetGet()
ArrayObject::__get in vendor/zendframework/zend-stdlib/src/ArrayObject.php
Returns the value at the specified key by reference

File

vendor/zendframework/zend-stdlib/src/ArrayObject.php, line 290

Class

ArrayObject
Custom framework ArrayObject implementation

Namespace

Zend\Stdlib

Code

public function &offsetGet($key) {
  $ret = null;
  if (!$this
    ->offsetExists($key)) {
    return $ret;
  }
  $ret =& $this->storage[$key];
  return $ret;
}