unset key value;
returns previously held data

@param string $key
@return mixed
14706
public function remove($key) {

		if(!array_key_exists($key, $this->data)) {
			return NULL;
		}

		$oldValue = $this->data[$key];
		unset($this->data[$key]);

		return $oldValue;

	}
1289142
public function remove($key)
    {
        if (is_object($key)) {
            $key = spl_object_hash($key);
        }

        unset($this->data[$key]);

        return $this;
    }
1061441
function delete($key) {
        $this->data[$key] = null;
        unset($this->data[$key]);
        return $this;
    }
546994
public function get($key) {
        if (!is_array($key)) {
            $key = array('key' => $key);
        }

        $key = $key['key'];
        if (isset($this->store[$key])) {
            if ($this->store[$key]['serialized']) {
                return $this->unserialize($this->store[$key]['data']);
            } else {
                return $this->store[$key]['data'];
            }
        }
        return false;
    }
388722
public function pull($key)
    {
        $value = $this->get($key);
        $this->remove($key);

        return $value;
    }
69886
public function delete($key) {
        if (!is_array($key)) {
            $key = array('key' => $key);
        }
        $key = $key['key'];
        $result = isset($this->store[$key]);
        unset($this->store[$key]);
        if ($this->maxsize !== false) {
            $this->storecount--;
        }
        return $result;
    }
656493
public function forget($key = null)
    {
        $key = $key ?: $this->getCacheKey();

        $cache = $this->getCache();

        return $cache->forget($key);
    }
1179507
public function offsetUnset($key)
    {
        $keys = $this->parseKey($key);
        $array = &$this->values;

        while (count($keys) > 1) {
            $key = array_shift($keys);

            if (!isset($array[$key]) || !is_array($array[$key])) {
                return;
            }

            $array =& $array[$key];
        }

        unset($array[array_shift($keys)]);
    }
998546
public function keyDataChanged($key)
    {
        $data           = $this->toArray($key);
        $originalData   = $this->returnOriginalData($key);

        return $data !== $originalData;
    }
782562
public function remove ($key) {
        if (!$this->_r) {
            if (isset($this->_d[$key])) {
                $value = $this->_d[$key];
                unset($this->_d[$key]);
                return $value;
            } else {
                // it is possible the value is null, which is not detected by isset
                unset($this->_d[$key]);
                return null;
            }
        } else
            throw new Exception(Yii::t ('yii' , 'The map is read only.'));
    }
189736
public function remove($key)
	{
		if(array_key_exists($key, $this->map))
		{
			$tmp = $this->map[$key]; 
			unset($this->map[$key]);
			return $tmp;
		}
		else
			return NULL;
	}
810919
public function offsetGet($key)
    {
        if (! isset($this->data[$key]) or is_array($this->data[$key])) {
            return $this->getSubset($key);
        }
        return $this->data[$key];
    }
246641
public function get($key)
    {
        $key       = (string)$key;
        $value     = null;
        $this->hit = false;

        if (\array_key_exists($key, self::$registry)) {
            if (self::$registry[$key]['expires'] >= (new DateTime())) {
                $this->hit = true;
                return $this->restoreDataStructure($key);
            }
            unset(self::$registry[$key]);
        }

        return $value;
    }
392517
public function delete($key)
    {
        key_exists_or_fail($key, $this->data);
        unset($this->data[$key]);
        $this->data = array_values($this->data);

        return $this;
    }
1087018
public static function delete( $key ) {
		unset( self::$option[ self::$key ][ $key ] );
		return update_option( self::$name, self::$option );
	}
758540
public function delete($key)
    {
        if (! $this->has($key)) return null;

        $value = $this->items[$key];

        unset($this->items[$key]);

        return $value;
    }
390301
public final function remove($key)
    {
        $previous = $this->get($key);

        if (isset($this->_map[$key])) {

            unset($this->_map[$key]);
        }

        return $previous;
    }