Re: Detecting \n

From: Date: Sun, 22 Oct 2000 00:54:45 +0000
Subject: Re: Detecting \n
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21615@lists.php.net to get a copy of this message
you probably want to remove carriage returns as well: ereg_replace("\n|\r", "", $formfield) jason ----- Original Message ----- From: "Ben Wiechman" <neteru@aminal.net> To: "Php-General" <php-general@lists.php.net> Sent: Sunday, October 22, 2000 10:17 AM Subject: RE: [PHP] Detecting \n > That works great if the \n is at the end of the line, I need something I can > use in ereg_replace, or preg_replace to remove a \n from the middle of a > line of text. > > Ben

« previous php.general (#21615) next »