Hi all,
I need to take separate lines from a text area input. For example, if the input is
qqq www dddd
I need to take the separate lines in an array, {qqq,www,ddd}. Can any one suggest me the best possible method to do this.
Thanks in advance, 🙂
$array = preg_split('/[\r\n]+/', trim($_POST['text_field']));
www.php.net/explode
Thanks guys, that helped