Re: help required on removing lf-cr from form data

From: Date: Tue, 16 Apr 2002 11:01:27 +0000
Subject: Re: help required on removing lf-cr from form data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93155@lists.php.net to get a copy of this message
In article <3CBC034C.24C5B74D@bhelrpt.co.in>, bvenkat@bhelrpt.co.in (Venkateshwar B) wrote: > 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 . $nobreaks=preg_replace("/[\r\n]+/"," ",$hasbreaks); <http://php.net/preg-replace> -- CC

« previous php.general (#93155) next »