public function remove($element)
    {
        $index = $this->indexOf($element);

        if ($index !== false) {
            unset($this->_items[$index]);
            $this->_items = array_values($this->_items);
            $this->_iterator = null;
            return true;
        }
        return false;
    }
public function remove($element)
    {
        $index = $this->indexOf($element);

        if ($index !== false) {
            unset($this->_items[$index]);
            $this->_items = array_values($this->_items);
            $this->_iterator = null;
            return true;
        }
        return false;
    }
public function remove ( $ element ) { $ index = $ this -> indexOf ( $ element ) ; if ( $ index !== false ) { unset ( $ this -> _items [ $ index ] ) ; $ this -> _items = array_values ( $ this -> _items ) ; $ this -> _iterator = null ; return true ; } return false ; }
remove a specified element from the collection

@param    mixed      $element        element
@return   bool
remove a specified element from the collection