public function removeItem($item)
    {
        $key = $this->getKey($item);
        if ($key !== false) {
            $this->offsetUnset($key);
        }
    }
public function removeItem($item)
    {
        $key = $this->getKey($item);
        if ($key !== false) {
            $this->offsetUnset($key);
        }
    }
public function removeItem ( $ item ) { $ key = $ this -> getKey ( $ item ) ; if ( $ key !== false ) { $ this -> offsetUnset ( $ key ) ; } }
Remove the given item from the collection.

@param mixed $item
Remove the given item from the collection .