Posts: 2,536
Location: Western Maryland
|
Assuming that each line in the textarea is delimited by a newline character, you should be able to use the explode() method.
This creates an array of strings from a given string, delimited by your chosen "delimiter string," in this case, a newline character.
PHP Code:
$arrTxt = explode( "\n", $_POST[mytextarea] );
__________________
—Kyrnt
|