Thanks alot! I didn't do that because I wasn't aware of the nl2br()
function.

I just taught myself php last weekend.  There's still plenty for me to
learn.

"Yz James" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Christopher,
>
> Why not use nl2br() and trim() ?
>
> $string = trim($string); // Clear any unwanted white space (trailing and
> leading);
> $string = nl2br($string); // Add line breaks where necessary
>
> echo "$string"; // Voila
>
> James
>



-- 
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]

Reply via email to