public function remove($key)
    {
        foreach ($this->options as $idx => $option) {
            if (is_array($option)) {
                if (! strcasecmp($key, $option['name'])) {
                    unset($this->options[$idx]);

                    return true;
                }
            } elseif (! strcasecmp($key, $option)) {
                unset($this->options[$idx]);

                return true;
            }
        }

        return false;
    }
public function remove($key)
    {
        foreach ($this->options as $idx => $option) {
            if (is_array($option)) {
                if (! strcasecmp($key, $option['name'])) {
                    unset($this->options[$idx]);

                    return true;
                }
            } elseif (! strcasecmp($key, $option)) {
                unset($this->options[$idx]);

                return true;
            }
        }

        return false;
    }
public function remove ( $ key ) { foreach ( $ this -> options as $ idx => $ option ) { if ( is_array ( $ option ) ) { if ( ! strcasecmp ( $ key , $ option [ 'name' ] ) ) { unset ( $ this -> options [ $ idx ] ) ; return true ; } } elseif ( ! strcasecmp ( $ key , $ option ) ) { unset ( $ this -> options [ $ idx ] ) ; return true ; } } return false ; }
Removes the option from the array.

@param string $key the key to be removed

@return bool whether the key was found and deleted or not
Removes the option from the array .