I'd like to write the following three lines on one line -
$list = ereg_replace ("\n+","", $list);
$list = ereg_replace ("\r+","", $list);
$list = ereg_replace (" +","", $list);
I tried the following but it didn't work
$list = ereg_replace ("[\n+][\r+][ +]","", $list);
In case you are wondering - the purpose is to remove spaces, new lines and returns from the exploded comma separated emails from a form input.
many thanks
mick
www.beyondtv.org