On Tue, 27 Jul 2004 18:29:42 -0500, Raśl Castro <[EMAIL PROTECTED]> 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!". >
If you don't want newlines, don't use a textarea..... But it you really want it: $text = str_replace(array("\n", "\r"), ' ', $text); -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php