Re: Simplest problem

From: Date: Wed, 28 Jun 2000 08:34:32 +0000
Subject: Re: Simplest problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3516@lists.php.net to get a copy of this message
dhaval desai, > Hey! > > Guys I know...that in HTML we use <br> tag to change the line. > But I am referring that \n from a book on php called > Core PHP Programming by Leon Atkinson. > This guy says to use a "\n" > > Now tell me what is the exact problem. When you use '\n', the only place you are going to get a newline is in the HTML source. If you load your document and view the source from the browser you will see a newline inserted where you printed out a '\n'. There is a function to change '\n' to '<br>' however, and it's called nl2br. There is no problem with your code, it behaves like it should. -- Øyvind Grønnesby "Wow, I had knowledge!" --Buffy

« previous php.general (#3516) next »