public function deleteColumn($name)
    {
        $index = array_search($name, $this->columns);

        if ($index !== false) {
            unset($this->columns[$index]);
            $this->columns = array_values($this->columns);
        }

        return $this;
    }
public function deleteColumn($name)
    {
        $index = array_search($name, $this->columns);

        if ($index !== false) {
            unset($this->columns[$index]);
            $this->columns = array_values($this->columns);
        }

        return $this;
    }
public function deleteColumn ( $ name ) { $ index = array_search ( $ name , $ this -> columns ) ; if ( $ index !== false ) { unset ( $ this -> columns [ $ index ] ) ; $ this -> columns = array_values ( $ this -> columns ) ; } return $ this ; }
Delete column by name

@param   string $name Name of the column to be deleted

@return  static This object for chaining

@since 2.1
Delete column by name