Hi
When you echo it to screen, it is interpreted as normal HTML, which, as I hope you know, shows only linebreaks when <br> is includes, and multiple spaces / tabs etc are ignored.
You can work around this by surrounding the echood text with
<pre> *** </pre>
tags (prformatted text).
more elegant is of course to use nl2br() to convert linebreaks to <br>
J.