You are here

public function ArrayObject::offsetUnset in Zircon Profile 8

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

Unsets the value at the specified key

Parameters

mixed $key:

Return value

void

1 call to ArrayObject::offsetUnset()
ArrayObject::__unset in vendor/zendframework/zend-stdlib/src/ArrayObject.php
Unsets the value at the specified key

File

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

Class

ArrayObject
Custom framework ArrayObject implementation

Namespace

Zend\Stdlib

Code

public function offsetUnset($key) {
  if ($this
    ->offsetExists($key)) {
    unset($this->storage[$key]);
  }
}