Q. How to remove new line/CrLf in string??

From: Date: Thu, 20 Mar 2003 20:19:46 +0000
Subject: Q. How to remove new line/CrLf in string??
Groups: php.general 
Request: Send a blank email to php-general+get-140473@lists.php.net to get a copy of this message
Hello: I am trying to use an ASCII/Txt database for a 'for sale by owner' site. I need to figure out a way to remove any carriage returns entered into a "Comments" string because \n is the record delimiter. I have tried the nl2br() fundtion but that seems to ad the <BR> but doesn't remove the \n. Any help any one. Thanks

« previous php.general (#140473) next »