Forum Moderators: coopster

Message Too Old, No Replies

Read each line of user input into array

How to read each line of user input into an array.

         

erikcw

9:06 pm on May 23, 2004 (gmt 0)

10+ Year Member



Hi All,

I have an html form textarea/box. The user enters in a list of data into the textarea. One item per line (a list).
I then need to read each line (\n) into an array. Similar to how file() reads the contents of a file into an array...

Any ideas?

IanKelley

10:01 pm on May 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



$array = explode("\n", $textarea);