Re: [PHP] outputting a carriage return

2003-07-17 Thread Curt Zirzow
bob pilly <[EMAIL PROTECTED]> wrote: > Hi all > Can someone tell me why if i echo a line like this: > > > echo "this is a \n newline"; > the output is: > this is a > newline. > > But if i do this: $text="this is a \n newline"; > echo $text; > the output is: > this is a newline? works fine

RE: [PHP] outputting a carriage return

2003-07-17 Thread Edward Peloke
try nl2br() http://us2.php.net/manual/en/function.nl2br.php -Original Message- From: bob pilly [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 9:12 AM To: [EMAIL PROTECTED] Subject: [PHP] outputting a carriage return Hi all Can someone tell me why if i echo a line like this: