Hi, I have a string
, with line breaks
in my database.
I want to put that string
in an array
, and for every new line
, jump one index place
in the array
.
If the string
is:
"My text1(here is a line break)My text2(here is a line break)My text3"
The result I want is this:
array[0]
= "My text1"
array[1]
= "My text2"
array[2]
= "My text3