public function hasColumns($table, array $columns)
    {
        $tableColumns = array_map('strtolower', array_keys($this->getColumnListing($table)));

        foreach ($columns as $column) {
            if (!in_array(strtolower($column), $tableColumns)) {
                return false;
            }
        }

        return true;
    }
public function hasColumns($table, array $columns)
    {
        $tableColumns = array_map('strtolower', array_keys($this->getColumnListing($table)));

        foreach ($columns as $column) {
            if (!in_array(strtolower($column), $tableColumns)) {
                return false;
            }
        }

        return true;
    }
public function hasColumns ( $ table , array $ columns ) { $ tableColumns = array_map ( 'strtolower' , array_keys ( $ this -> getColumnListing ( $ table ) ) ) ; foreach ( $ columns as $ column ) { if ( ! in_array ( strtolower ( $ column ) , $ tableColumns ) ) { return false ; } } return true ; }
Determine if the given table has given columns.

@param string $table
@param array  $columns

@return bool
Determine if the given table has given columns .