Re: Getting rid of extra lines

From: Date: Wed, 29 Jul 2009 19:20:08 +0000
Subject: Re: Getting rid of extra lines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-296021@lists.php.net to get a copy of this message
On 7/29/09 1:45 PM, "Ashley Sheridan" <ash@ashleysheridan.co.uk> wrote: [snip/] Have you thought of just using a regular str_replace() on your code? You can ask it to replace newlines and carriage returns with nothing and see if that fixes you problem? Thanks Ash www.ashleysheridan.co.uk Yep I have tried str_replace to get rid of \n and it didn't work Boss mentioned to explode the var that is full of so many blank lines then put it back together..seems like there has to be an easier way... This is what I tried: $tags = array('\n', '<br>'); $sNotes = str_replace($tags,"", $notes);

« previous php.general (#296021) next »