You mean something like this? $message = ereg_replace( "\n", " ", $message);
It seems to replace all new line instances with a blank space. "Karl Timmermann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php