Re: Getting rid of extra lines
| From: | Ashley Sheridan | Date: | Wed, 29 Jul 2009 18:34:35 +0000 |
| Subject: | Re: Getting rid of extra lines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296013@lists.php.net to get a copy of this message | ||
On Wed, 2009-07-29 at 11:29 -0700, Miller, Terion wrote:
> I am trying to get rid of empty whitespace lines, I can't us chop() because
> as I read it it will remove all whitespaces....right?
>
> Right now my db is outputting with extra lines, I have stripped tags I know
> it isn't that causing it to look like this
>
> Blahlajdlkfjlksdjflkdjsf
>
> <--------------how do I get rid of all this extra space?
>
> alkdfjlsdakjflsakdjflksjdf
>
>
Some example of where this is occurring in your code might help. HTML
output will ignore whitespace such as this unless it is asked explicitly
to preserve it, with a <pre> tag or CSS.
Thanks
Ash
www.ashleysheridan.co.uk