Re: eliminate <enter> keyword

From: Date: Tue, 27 Jul 2004 23:56:47 +0000
Subject: Re: eliminate <enter> keyword
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192045@lists.php.net to get a copy of this message
if you mean remove the new line characters, then a str_replace('\n', '', $textbody); should be sufficient. If thats not what you mean, please clarify. Jason On Tue, 27 Jul 2004 18:29:42 -0500, Raúl Castro <ora7@cdmb.gov.co> wrote: > Hello, > > I have a form with a textarea field, I'm trying to eliminate the <enter> keywords > that users write on it, what can I do using php? for instance: the original phrase would be: > "Hello <enter> world!" > after using a function php must be: "Hello world!". > > Thanks >

« previous php.general (#192045) next »