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

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

"Yz James" <[EMAIL PROTECTED]> wrote in message
> 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 (
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