Re: Quick hellp, How do I stip new lines?

From: Date: Sat, 17 Feb 2001 02:41:34 +0000
Subject: Re: Quick hellp, How do I stip new lines?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40279@lists.php.net to get a copy of this message
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" <brandon@webintellects.com> To: "PHP User Group" <php-general@lists.php.net> 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 > brandon@webintellects.com > 800-994-6364 > www.webintellects.com > -------------------------------------------- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#40279) next »