chump2877
08-16-2005, 11:57 AM
Is there a PHP function that will do something similar to what file() does (when it reads in each line of a text file and stores it as an array element), but apply this behavior to a POST variable that represents the contents of a HTML textarea? So this function would read the contents of my POST variable, line by line, and store each new line in an array element....Ideas?
Thanks.
Edit: Here's a better question: Does explode() recognize line breaks in a HTML textarea as '\n'? Or are line breaks lost in translation so to speak when the textarea contents are assigned to a PHP variable? So the resulting string becomes one long, contiguous string without line breaks?
Thanks.
Edit: Here's a better question: Does explode() recognize line breaks in a HTML textarea as '\n'? Or are line breaks lost in translation so to speak when the textarea contents are assigned to a PHP variable? So the resulting string becomes one long, contiguous string without line breaks?