Re: Text cleaning?

From: Date: Sat, 28 Feb 2004 06:56:02 +0000
Subject: Re: Text cleaning?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179055@lists.php.net to get a copy of this message
You mean something like this? $message = ereg_replace( "\n", " ", $message); It seems to replace all new line instances with a blank space. "Karl Timmermann" <timmerk@comcast.net> wrote in message news:4230FB3B-69AC-11D8-9382-000A95A276A0@comcast.net... > Does anyone have some PHP code to remove incorrect carriage returns? > > Example: > > Sentence should be "Hi, my name is Karl and I like PHP." > but is: "Hi, my name is Karl and I like > PHP." > > or > "Hi my name is Karl and > I like PHP." > > I think I saw some code before that does it, but can't find it anywhere. > > Thanks! > Karl

« previous php.general (#179055) next »