SimpleExcel\Parser\BaseParser::isColumnExists PHP Method

isColumnExists() public method

Check whether a specified column exists
public isColumnExists ( integer $col_num ) : boolean
$col_num integer Column number
return boolean
    public function isColumnExists($col_num)
    {
        $exist = false;
        foreach ($this->table_arr as $row) {
            if (array_key_exists($col_num - 1, $row)) {
                $exist = true;
            }
        }
        return $exist;
    }