How can a string (i.E. from a Textarea) be split into an array with “newline” as delimiter?
It does not work with “\n” or PHP_EOL.
Example:
placesArray = ${String.split(placesString, "\n")}
How can a string (i.E. from a Textarea) be split into an array with “newline” as delimiter?
It does not work with “\n” or PHP_EOL.
Example:
placesArray = ${String.split(placesString, "\n")}
String.char(10)
should work
Correct would be:
String.chr(10)