src/includes/classes/Core/Utils/Sql.php
public function quoteColumns(array $columns, string $table = ''): string
    {
        $quoted = ''; // Initialize.

        foreach ($columns as $_column) {
            if ($_column && is_string($_column)) {
                $quoted .= ','.$this->quoteColumn($_column, $table);
            }
        } // unset($_column); // Housekeeping.

        return $this->c::mbTrim($quoted, ' ,');
    }
public function quoteColumns(array $columns, string $table = ''): string
    {
        $quoted = ''; // Initialize.

        foreach ($columns as $_column) {
            if ($_column && is_string($_column)) {
                $quoted .= ','.$this->quoteColumn($_column, $table);
            }
        } // unset($_column); // Housekeeping.

        return $this->c::mbTrim($quoted, ' ,');
    }
Quotes/escapes table.columns.

@since 160422 SQL utils.

@param array  $columns Columns.
@param string $table   Table name.

@return string Quoted/escaped table.columns.