src/CSDT/CollectionsBundle/TraitCollection/MapCollectionTrait.php
public function remove($key)
    {
        $returnValue = $this->get($key);
        $this->content = array_diff_key($this->content, array_flip(array($key)));
        return $returnValue;
    }
public function remove($key)
    {
        $returnValue = $this->get($key);
        $this->content = array_diff_key($this->content, array_flip(array($key)));
        return $returnValue;
    }
Remove

Remove a specified key. It return the
value contained into the key.

@param mixed $key The key to remove

@return mixed