hi, when you get a string from a textarea from a form, how do you get rid of the line breaks? i tired
$string = str_replace("\n", "", $string);
it's NOT WORKING
any other suggestions?
thanks
nevermind i figured it out
this worked.
$string = str_replace("\r", "", $string);
Try this:
$string = explode("\n", $string);