Re: Newline charactes causing problems

From: Date: Thu, 05 Dec 2002 15:53:39 +0000
Subject: Re: Newline charactes causing problems
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-127160@lists.php.net to get a copy of this message
Or $notes = preg_replace("/(\r)?\n/"," ",$_POST['notes']); in case it's the \r that's actually messing you up and not the \n? ---John Holmes... ----- Original Message ----- From: "John Wards" <j.wards@sportnetwork.net> To: "Joshua E Minnie" <josh@acsurf.net>; <php-general@lists.php.net> Sent: Thursday, December 05, 2002 10:48 AM Subject: Re: [PHP] Newline charactes causing problems On Thursday 05 Dec 2002 3:48 pm, Joshua E Minnie wrote: > A load of stuff.......... I just read the fist few paragraphs and got bored....;-) but.... Have you tried doing a str_replace for \n which is new line? just replate it with a blank string John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#127160) next »