무료 온라인 배열 및 목록 변환기
일반 텍스트 목록을 프로젝트에 필요한 배열 구문으로 변환합니다. Dokall는 JavaScript, Python, PHP, Perl, SQL IN 절 및 JSON 배열을 지원합니다. 스프레드시트의 열 데이터가 있고 코드 지원 출력이 필요한 경우에 적합합니다.
한 줄에 하나의 항목을 붙여넣고 서식이 지정된 결과를 복사하세요. 수동으로 인용하거나 대괄호로 묶을 필요가 없습니다.
Frequently Asked Questions
What output formats are supported?
Dokall converts a line-separated list into JavaScript arrays, Python lists, PHP arrays, Perl arrays, SQL IN clauses, and JSON arrays. Each format handles quoting and escaping according to its language rules.
How does the SQL IN clause format work?
Each line becomes a quoted value inside parentheses: ('value1', 'value2', 'value3'). String values are single-quoted and internal quotes are escaped. Use this for WHERE column IN (...) queries when you have a list of IDs or names from a spreadsheet.
Are special characters escaped?
Yes. Quotes, backslashes, and other special characters in your input are escaped according to the target format. A line containing it's becomes "it's" in JavaScript and 'it\'s' in SQL.
Can I convert from an array back to lines?
This tool converts lines to arrays, not the reverse. To extract values from an existing array, use the JSON formatter to pretty-print it, then manually copy values, or use your language's join method programmatically.
One item per line - what about commas in values?
Each line is treated as one array element regardless of commas within the line. If your data uses commas as separators instead of newlines, paste into a spreadsheet first, then copy the column to get one value per line.