nspl\ds\Collection::offsetUnset PHP Метод

offsetUnset() публичный Метод

(PHP 5 >= 5.0.0)
Offset to unset
public offsetUnset ( integer $index ) : void
$index integer

The offset to unset.

Результат void
    public function offsetUnset($index)
    {
        if (!isset($this->array[$index])) {
            throw new \Exception('Index out of range');
            // @todo Throw IndexException
        }
        unset($this->array[$index]);
    }