src/AbstractCollectionPlus.php
public function remove($index)
    {
        if (isset($this->_storage[$index]) || array_key_exists($index, $this->_storage))
        {
            $this->_modified = true;
            $removed = $this->_storage[$index];
            unset($this->_storage[$index]);
            return $removed;
        }

        return null;
    }
public function remove($index)
    {
        if (isset($this->_storage[$index]) || array_key_exists($index, $this->_storage))
        {
            $this->_modified = true;
            $removed = $this->_storage[$index];
            unset($this->_storage[$index]);
            return $removed;
        }

        return null;
    }
public function remove ( $ index ) { if ( isset ( $ this -> _storage [ $ index ] ) || array_key_exists ( $ index , $ this -> _storage ) ) { $ this -> _modified = true ; $ removed = $ this -> _storage [ $ index ] ; unset ( $ this -> _storage [ $ index ] ) ; return $ removed ; } return null ; }
Remove and return an element

@param $index
@return mixed|null
Remove and return an element