help required on removing lf-cr from form data

From: Date: Tue, 16 Apr 2002 10:56:13 +0000
Subject: help required on removing lf-cr from form data
Groups: php.general 
Request: Send a blank email to php-general+get-93154@lists.php.net to get a copy of this message
hi, I am trying to get some data entered in a form into a file. But I want to remove the lf-cr appearing in between lines and have only one carriage return at the end. This is because , I am using carriage return as the field separator in my text file and I want each field to be limited to one line even if it is entered in multiple lines in the form. I have tried to use "str_replace" and replace "\n" by "". But it does'nt give me the desired result of limiting text to single line . I need help on this. venkateshwar.B

« previous php.general (#93154) next »