CI_DB_forge::_create_table_attr PHP Method

_create_table_attr() protected method

CREATE TABLE attributes
protected _create_table_attr ( array $attributes ) : string
$attributes array Associative array of table attributes
return string
    protected function _create_table_attr($attributes)
    {
        $sql = '';
        foreach (array_keys($attributes) as $key) {
            if (is_string($key)) {
                $sql .= ' ' . strtoupper($key) . ' ' . $attributes[$key];
            }
        }
        return $sql;
    }