Flake\Core\Collection::remove PHP Méthode

remove() public méthode

public remove ( $sKey )
    function remove($sKey)
    {
        $aKeys = $this->keys();
        if (!in_array($sKey, $aKeys)) {
            throw new \Exception("\\Flake\\Core\\Collection->remove(): key '" . $sKey . "' not found in Collection");
        }
        unset($this->aCollection[$sKey]);
        $this->aCollection = array_values($this->aCollection);
    }