Handling new lines in php
问题 I have form in html where user can put the text in text area. I save the content of text area into MySQL database (in field of type TEXT). Then I somewhere in my aplication I need load that text and put it into array where in each index will be one line of the text. <textarea rows="10" cols="80"> Row one Row two Row tree </textarea> array (output in "php pseudocode"): $array = array(); $array[0] = Row one; $array[1] = Row two; $array[2] = Row tree; How I do it: I save it to db then I load it