Text to a PHP array
Turn a pasted list into a PHP array using the short [] syntax.
Paste a list and get a PHP array assignment using the short bracket syntax, each value quoted and on its own line, ending with the semicolon PHP expects. Blank lines are dropped and each item is trimmed before it is quoted.
Useful for a config array, an allow-list or a set of option values that started life as a column in a spreadsheet. The conversion happens entirely in your browser — nothing about the list is sent anywhere.
Questions
Does it use array() or the short syntax?
The short [] syntax, which has been the recommended form since PHP 5.4.
Can I produce an associative array?
No. The output is a plain indexed array; keys would have to come from somewhere the pasted list does not provide.
Build your own chain in the pipeline builder.