You want to totally remove \n?
$something = ereg_replace("\n"," ",$something);
That should do it. If you mean making \n into BR:
$something = ereg_replace("\n","<br>",$something);
- Kath
----- Original Message -----
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001 9:38 PM
Subject: [PHP] Quick hellp, How do I stip new lines?
> Hello,
>
> Hey I can't remeber how to do it but I'm sure one of you will. How do I
> strip the \n from a variable?
>
>
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]