src/models/Schema.php
public function oneArrayStyleString(array $data, array $columnType, $indent = 0)
    {
        $string = '[';

        // get rows data
        foreach ($data as $columnName => $value) {
            if (null === $value) {
                $string .= 'null, ';
            } elseif (false !== strpos($columnType[$columnName]->dbType, 'int')) {
                $string .= (int) $value . ', ';
            } else { // string text ...
                $value = str_replace(["'", "\\", "\r\n"], ["\'", "\\", self::ENTER], $value);
                $string .= "'{$value}', ";
            }
        }

        $string = rtrim($string, ', ');
        $string .= ']';

        return $this->textIndent($indent) . $string;
    }
public function oneArrayStyleString(array $data, array $columnType, $indent = 0)
    {
        $string = '[';

        // get rows data
        foreach ($data as $columnName => $value) {
            if (null === $value) {
                $string .= 'null, ';
            } elseif (false !== strpos($columnType[$columnName]->dbType, 'int')) {
                $string .= (int) $value . ', ';
            } else { // string text ...
                $value = str_replace(["'", "\\", "\r\n"], ["\'", "\\", self::ENTER], $value);
                $string .= "'{$value}', ";
            }
        }

        $string = rtrim($string, ', ');
        $string .= ']';

        return $this->textIndent($indent) . $string;
    }
return string of array style
eg: "['1', '2', '3']"
@param array $array 一维数组
@param array $columnType 字段类型
@param int $indent int text-indent 文本缩进
@return string