I have a text field in a database where the text includes line breaks. I need to remove the line breaks so that it prints in a textarea as all one line.
I have tried:
$Sequence = ereg_replace("\n", "", $tbSequence->Sequence);
$Sequence = preg_replace("/\n/", "", $tbSequence->Sequence);
$Sequence = str_replace("\n", "", $tbSequence->Sequence);
None of these worked for me. It still prints with all of the line breaks. Is there no other way to strip the line breaks?