I've got a textarea on a form which contains a list of items. (The users can add new lines or spaces between each item)
I'm getting the contents of the textarea passed on to my script but I can't split the contents out into an array.
I've tried
$domains = split(" ", $domain);
$domains = explode(" ", $domain);
Plus combinations based on
$domain= ereg_replace($lookfor, $repl , $domain);
where $lookfor was "[[:space:]]"
All to no avail.
Any pointers?