src/Versatile/Search/ProvidesKeyInterface.php
public function clearKey($key)
    {
        $keys = func_num_args() > 1 ? func_get_args() : (array)$key;

        foreach ($keys as $key) {
            $idx = array_search($key, $this->keys);
            if ($idx !== false) {
                unset($this->keys[$idx]);
            }
        }

        $this->keys = array_values($this->keys);
        return $this;

    }
public function clearKey($key)
    {
        $keys = func_num_args() > 1 ? func_get_args() : (array)$key;

        foreach ($keys as $key) {
            $idx = array_search($key, $this->keys);
            if ($idx !== false) {
                unset($this->keys[$idx]);
            }
        }

        $this->keys = array_values($this->keys);
        return $this;

    }
public function clearKey ( $ key ) { $ keys = func_num_args ( ) > 1 ? func_get_args ( ) : ( array ) $ key ; foreach ( $ keys as $ key ) { $ idx = array_search ( $ key , $ this -> keys ) ; if ( $ idx !== false ) { unset ( $ this -> keys [ $ idx ] ) ; } } $ this -> keys = array_values ( $ this -> keys ) ; return $ this ; }
Clears a key or many keys (columns). Pass a single key, an array of keys
or multiple (string) arguments

@param array|string $key
@return self
Clears a key or many keys ( columns ) . Pass a single key an array of keys or multiple ( string ) arguments